File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
DocumentationAnalyzers/DocumentationAnalyzers.Test/StyleRules Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,55 @@ class TestClass
4040 await Verify . VerifyCodeFixAsync ( testCode , fixedCode ) ;
4141 }
4242
43+ [ Fact ]
44+ public async Task TestEmptySeeElementSeparatesParagraphsAsync ( )
45+ {
46+ var testCode = @"
47+ /// <summary>
48+ /// Summary 1
49+ /// <see cref=""TestClass""/>
50+ /// Summary 2
51+ /// </summary>
52+ class TestClass
53+ {
54+ }
55+ " ;
56+
57+ await Verify . VerifyAnalyzerAsync ( testCode ) ;
58+ }
59+
60+ [ Fact ]
61+ public async Task TestPrefixedParagraphElementSeparatesParagraphsAsync ( )
62+ {
63+ var testCode = @"
64+ /// <summary>
65+ /// Summary 1
66+ /// <html:p/>
67+ /// Summary 2
68+ /// </summary>
69+ class TestClass
70+ {
71+ }
72+ " ;
73+
74+ await Verify . VerifyAnalyzerAsync ( testCode ) ;
75+ }
76+
77+ [ Fact ]
78+ public async Task TestEmptyElementWithMissingNameAsync ( )
79+ {
80+ var testCode = @"
81+ /// <summary>
82+ /// <
83+ /// </summary>
84+ class TestClass
85+ {
86+ }
87+ " ;
88+
89+ await Verify . VerifyAnalyzerAsync ( testCode ) ;
90+ }
91+
4392 [ Fact ]
4493 public async Task TestEmptyHtmlParagraphElementSeparatesParagraphsAsync ( )
4594 {
You can’t perform that action at this time.
0 commit comments