diff options
Diffstat (limited to '')
-rw-r--r-- | src/WixBuildTools.TestSupport/WixAssert.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/WixBuildTools.TestSupport/WixAssert.cs b/src/WixBuildTools.TestSupport/WixAssert.cs index 4a5c6a97..71dc6b67 100644 --- a/src/WixBuildTools.TestSupport/WixAssert.cs +++ b/src/WixBuildTools.TestSupport/WixAssert.cs | |||
@@ -7,6 +7,16 @@ namespace WixBuildTools.TestSupport | |||
7 | 7 | ||
8 | public class WixAssert : Assert | 8 | public class WixAssert : Assert |
9 | { | 9 | { |
10 | public static void AssertEqualLineByLine(string[] expectedLines, string[] actualLines) | ||
11 | { | ||
12 | for (var i = 0; i < expectedLines.Length; ++i) | ||
13 | { | ||
14 | Assert.True(actualLines.Length > i, $"{i}: expectedLines longer than actualLines"); | ||
15 | Assert.Equal($"{i}: {expectedLines[i]}", $"{i}: {actualLines[i]}"); | ||
16 | } | ||
17 | Assert.True(expectedLines.Length == actualLines.Length, "actualLines longer than expectedLines"); | ||
18 | } | ||
19 | |||
10 | public static void Succeeded(int hr, string format, params object[] formatArgs) | 20 | public static void Succeeded(int hr, string format, params object[] formatArgs) |
11 | { | 21 | { |
12 | if (0 > hr) | 22 | if (0 > hr) |