@@ -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>
322323public 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>
344346public 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