Skip to content

Commit

Permalink
fix for appveyor exposed test error
Browse files Browse the repository at this point in the history
  • Loading branch information
activescott committed May 30, 2016
1 parent b8b0bc9 commit f220ed2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Lessmsi.Tests/CommandLineExtractTests.cs
Expand Up @@ -104,7 +104,10 @@ public void List()

string consoleOutput;
RunCommandLine("l -t Property TestFiles\\MsiInput\\NUnit-2.5.2.9222.msi", out consoleOutput);
Assert.Equal(expectedOutput, consoleOutput);
// strangely I've seen newlines treated differently either by xunit or different versions of windows. So lets compare these as a list of lines: https://ci.appveyor.com/project/activescott/lessmsi/build/1.0.7/tests
string[] expectedOutputLines = expectedOutput.Split(new string[]{ "\r\n", "\n" }, StringSplitOptions.None);
string[] consoleOutputLines = consoleOutput.Split(new string[] { "\r\n", "\n" }, StringSplitOptions.None);
Assert.Equal(expectedOutputLines, consoleOutputLines);
}

[Fact]
Expand Down

0 comments on commit f220ed2

Please sign in to comment.