Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Commit 4a3cba2

Browse files
committed
Fix exclusion tests
1 parent cbb8b98 commit 4a3cba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AsyncUsageAnalyzers/AsyncUsageAnalyzers.Test/Verifiers/DiagnosticVerifier.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ protected Task VerifyCSharpDiagnosticAsync(string source, DiagnosticResult expec
9494
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
9595
protected Task VerifyCSharpDiagnosticAsync(string source, DiagnosticResult[] expected, CancellationToken cancellationToken, string filename = null)
9696
{
97-
return this.VerifyDiagnosticsAsync(new[] { source }, LanguageNames.CSharp, this.GetCSharpDiagnosticAnalyzers().ToImmutableArray(), expected, cancellationToken, new[] { filename });
97+
return this.VerifyDiagnosticsAsync(new[] { source }, LanguageNames.CSharp, this.GetCSharpDiagnosticAnalyzers().ToImmutableArray(), expected, cancellationToken, filename != null ? new[] { filename } : null);
9898
}
9999

100100
/// <summary>

0 commit comments

Comments
 (0)