Skip to content

Commit 7fb205e

Browse files
committed
Merge pull request #2018 from sharwell/exclusion-tests
Fix exclusion tests
2 parents c898d40 + 810b938 commit 7fb205e

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)