Skip to content

Commit

Permalink
Update SA0001 unit test
Browse files Browse the repository at this point in the history
Previously the test used the wrong form for verifying diagnostics without
a location.
  • Loading branch information
sharwell committed Jan 9, 2016
1 parent cb96274 commit e3bb82a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e3bb82a

Please sign in to comment.