Skip to content

Commit e3bb82a

Browse files
committed
Update SA0001 unit test
Previously the test used the wrong form for verifying diagnostics without a location.
1 parent cb96274 commit e3bb82a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

StyleCop.Analyzers/StyleCop.Analyzers.Test/SpecialRules/SA0001UnitTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public async Task TestDisabledDocumentationModesAsync(DocumentationMode document
4242
}
4343
";
4444

45-
DiagnosticResult expected = this.CSharpDiagnostic().WithLocation(null, 0, 0);
45+
// This diagnostic is reported without a location
46+
DiagnosticResult expected = this.CSharpDiagnostic();
4647

4748
this.documentationMode = documentationMode;
4849
await this.VerifyCSharpDiagnosticAsync(testCode, expected, CancellationToken.None).ConfigureAwait(false);

0 commit comments

Comments
 (0)