Skip to content

Commit 4780952

Browse files
authored
Merge pull request github#1983 from hvitved/csharp/unit-test-windows
C#: Fix broken unit test on Windows
2 parents 6d9d859 + cb6e153 commit 4780952

File tree

1 file changed

+2
-1
lines changed
  • csharp/extractor/Semmle.Extraction.Tests

1 file changed

+2
-1
lines changed

csharp/extractor/Semmle.Extraction.Tests/Options.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System;
44
using System.IO;
55
using Semmle.Util;
6+
using System.Text.RegularExpressions;
67

78
namespace Semmle.Extraction.Tests
89
{
@@ -197,7 +198,7 @@ public void ArchiveArguments()
197198
{
198199
File.AppendAllText(file, "Test");
199200
new string[] { "/noconfig", "@" + file }.WriteCommandLine(sw);
200-
Assert.Equal("Test\n", sw.ToString());
201+
Assert.Equal("Test", Regex.Replace(sw.ToString(), @"\t|\n|\r", ""));
201202
}
202203
finally
203204
{

0 commit comments

Comments
 (0)