Skip to content

Commit 06903c0

Browse files
committed
Add tests showing discrepancy for <see> element from <a> and <seealso>
1 parent a559b3e commit 06903c0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1629UnitTests.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,23 @@ public interface ITest
544544
await VerifyCSharpFixAsync(testCode, expected, fixedTestCode, default).ConfigureAwait(false);
545545
}
546546

547+
[Theory]
548+
[InlineData("a")]
549+
[InlineData("see")]
550+
[InlineData("seealso")]
551+
public async Task TestFullSentenceLinkAsync(string tag)
552+
{
553+
var testCode = $@"
554+
/// <summary>
555+
/// <{tag} href=""someurl"">Periods aren't required to glow white at the end of a full-sentence link.</{tag}>
556+
/// </summary>
557+
public interface ITest
558+
{{
559+
}}
560+
";
561+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, default).ConfigureAwait(false);
562+
}
563+
547564
[Theory]
548565
[InlineData(",")]
549566
[InlineData(";")]

0 commit comments

Comments
 (0)