Skip to content

Commit 0896aa6

Browse files
committed
<seealso> does not belong inside <summary>
1 parent 4da16ee commit 0896aa6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -545,15 +545,15 @@ public interface ITest
545545
}
546546

547547
[Theory]
548-
[InlineData("a")]
549-
[InlineData("see")]
550-
[InlineData("seealso")]
551-
public async Task TestFullSentenceLinkAsync(string tag)
548+
[InlineData("a", true)]
549+
[InlineData("see", true)]
550+
[InlineData("seealso", false)]
551+
public async Task TestFullSentenceLinkAsync(string tag, bool insideSummary)
552552
{
553+
var surrounding = insideSummary ? (Start: "<summary>", End: "<summary>") : (Start: string.Empty, End: string.Empty);
554+
553555
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>
556+
/// {surrounding.Start}<{tag} href=""someurl"">Periods aren't required to glow white at the end of a full-sentence link.</{tag}>{surrounding.End}
557557
public interface ITest
558558
{{
559559
}}

0 commit comments

Comments
 (0)