diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.Test/SpecialRules/SA0001UnitTests.cs b/StyleCop.Analyzers/StyleCop.Analyzers.Test/SpecialRules/SA0001UnitTests.cs index 4c4d3edb8..217a623d3 100644 --- a/StyleCop.Analyzers/StyleCop.Analyzers.Test/SpecialRules/SA0001UnitTests.cs +++ b/StyleCop.Analyzers/StyleCop.Analyzers.Test/SpecialRules/SA0001UnitTests.cs @@ -42,7 +42,8 @@ public async Task TestDisabledDocumentationModesAsync(DocumentationMode document } "; - DiagnosticResult expected = this.CSharpDiagnostic().WithLocation(null, 0, 0); + // This diagnostic is reported without a location + DiagnosticResult expected = this.CSharpDiagnostic(); this.documentationMode = documentationMode; await this.VerifyCSharpDiagnosticAsync(testCode, expected, CancellationToken.None).ConfigureAwait(false);