diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1642UnitTests.cs b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1642UnitTests.cs index 09de7695e..f651fef33 100644 --- a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1642UnitTests.cs +++ b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1642UnitTests.cs @@ -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] @@ -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]