Skip to content

Commit b2b0b2a

Browse files
Apply suggestions from code review
Co-authored-by: Sam Harwell <sam@tunnelvisionlabs.com>
1 parent 097c8ea commit b2b0b2a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1648UnitTests.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ public void TestMethod() { }
310310
/// </summary>
311311
/// <returns>A <see cref="Task"/> representing the asynchronous unit test.</returns>
312312
[Fact]
313+
[WorkItem(3291, "https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3291")]
313314
public async Task TestIncorrectDocumentedDelegateInheritDocAsync()
314315
{
315316
var testCode = @"
@@ -321,12 +322,12 @@ public async Task TestIncorrectDocumentedDelegateInheritDocAsync()
321322
/// <summary>Test class</summary>
322323
public class TestClass
323324
{
324-
/// <include file='DelegateInheritDoc.xml' path='/TestDelegate/*'/>
325+
/// {|#0:<include file='DelegateInheritDoc.xml' path='/TestDelegate/*'/>|}
325326
public delegate bool TestDelegate(int value);
326327
}
327328
";
328329

329-
var expected = Diagnostic().WithLocation(10, 7);
330+
var expected = Diagnostic().WithLocation(0);
330331
await VerifyCSharpDiagnosticAsync(testCode, expected, CancellationToken.None).ConfigureAwait(false);
331332
}
332333

@@ -335,6 +336,7 @@ public class TestClass
335336
/// </summary>
336337
/// <returns>A <see cref="Task"/> representing the asynchronous unit test.</returns>
337338
[Fact]
339+
[WorkItem(3291, "https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3291")]
338340
public async Task TestIncorrectDelegateInheritDocAsync()
339341
{
340342
var testCode = @"
@@ -343,12 +345,12 @@ public async Task TestIncorrectDelegateInheritDocAsync()
343345
/// <summary>Test class</summary>
344346
public class TestClass
345347
{
346-
/// <include file='DelegateInheritDoc.xml' path='/TestDelegate/*'/>
348+
/// {|#0:<include file='DelegateInheritDoc.xml' path='/TestDelegate/*'/>|}
347349
public delegate bool TestDelegate(int value);
348350
}
349351
";
350352

351-
var expected = Diagnostic().WithLocation(7, 7);
353+
var expected = Diagnostic().WithLocation(0);
352354
await VerifyCSharpDiagnosticAsync(testCode, expected, CancellationToken.None).ConfigureAwait(false);
353355
}
354356

0 commit comments

Comments
 (0)