Skip to content

Commit 810b938

Browse files
committed
Fix exclusion tests
1 parent c898d40 commit 810b938

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

StyleCop.Analyzers/StyleCop.Analyzers.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)