Skip to content

Commit

Permalink
Add regression tests for DotNetAnalyzers#1318
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Aug 29, 2015
1 parent 907c45f commit 7b42e45
Showing 1 changed file with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,15 @@ public async Task TestNonPrivateConstructorCorrectDocumentationGenericCustomized
[InlineData("struct")]
public async Task TestPrivateConstructorCorrectDocumentationAsync(string typeKind)
{
await this.TestConstructorCorrectDocumentationAsync(typeKind, "private", PrivateConstructorStandardText[0], $" {typeKind}" + PrivateConstructorStandardText[1], string.Empty, false).ConfigureAwait(false);
await this.TestConstructorCorrectDocumentationAsync(typeKind, "private", PrivateConstructorStandardText[0], $" {typeKind}{PrivateConstructorStandardText[1]}.", string.Empty, false).ConfigureAwait(false);
}

[Theory]
[InlineData("class")]
[InlineData("struct")]
public async Task TestPrivateConstructorCorrectExtendedDocumentationAsync(string typeKind)
{
await this.TestConstructorCorrectDocumentationAsync(typeKind, "private", PrivateConstructorStandardText[0], $" {typeKind}{PrivateConstructorStandardText[1]} externally.", string.Empty, false).ConfigureAwait(false);
}

[Theory]
Expand All @@ -117,7 +125,15 @@ public async Task TestPrivateConstructorCorrectDocumentation_NonPrivateCustomize
[InlineData("struct")]
public async Task TestPrivateConstructorCorrectDocumentationGenericAsync(string typeKind)
{
await this.TestConstructorCorrectDocumentationAsync(typeKind, "private", PrivateConstructorStandardText[0], $" {typeKind}" + PrivateConstructorStandardText[1], string.Empty, true).ConfigureAwait(false);
await this.TestConstructorCorrectDocumentationAsync(typeKind, "private", PrivateConstructorStandardText[0], $" {typeKind}{PrivateConstructorStandardText[1]}.", string.Empty, true).ConfigureAwait(false);
}

[Theory]
[InlineData("class")]
[InlineData("struct")]
public async Task TestPrivateConstructorCorrectExtendedDocumentationGenericAsync(string typeKind)
{
await this.TestConstructorCorrectDocumentationAsync(typeKind, "private", PrivateConstructorStandardText[0], $" {typeKind}{PrivateConstructorStandardText[1]} externally.", string.Empty, true).ConfigureAwait(false);
}

[Theory]
Expand Down

0 comments on commit 7b42e45

Please sign in to comment.