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

Commit 5e8297e

Browse files
committed
Add test for empty file containing whitespace
1 parent c51f377 commit 5e8297e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

AsyncUsageAnalyzers/AsyncUsageAnalyzers.Test/Verifiers/DiagnosticVerifier.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ public async Task TestEmptySourceAsync()
3030
{
3131
var testCode = string.Empty;
3232
await this.VerifyCSharpDiagnosticAsync(testCode, EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
33+
34+
testCode =
35+
" \r\n"
36+
+ "\r\n";
37+
await this.VerifyCSharpDiagnosticAsync(testCode, EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
3338
}
3439

3540
/// <summary>

0 commit comments

Comments
 (0)