diff options
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs b/src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs index ebc713ed..f9a9fe83 100644 --- a/src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs | |||
| @@ -32,10 +32,11 @@ namespace WixToolsetTest.CoreIntegration | |||
| 32 | "-bindpath", Path.Combine(folder, "data"), | 32 | "-bindpath", Path.Combine(folder, "data"), |
| 33 | "-intermediateFolder", intermediateFolder, | 33 | "-intermediateFolder", intermediateFolder, |
| 34 | "-o", Path.Combine(baseFolder, @"bin\test.msi") | 34 | "-o", Path.Combine(baseFolder, @"bin\test.msi") |
| 35 | }, out var messages); | 35 | }); |
| 36 | Assert.Equal(0, result); | ||
| 37 | 36 | ||
| 38 | var warnings = messages.Where(message => message.Id == 1118); | 37 | result.AssertSuccess(); |
| 38 | |||
| 39 | var warnings = result.Messages.Where(message => message.Id == 1118); | ||
| 39 | Assert.Single(warnings); | 40 | Assert.Single(warnings); |
| 40 | } | 41 | } |
| 41 | } | 42 | } |
| @@ -59,8 +60,9 @@ namespace WixToolsetTest.CoreIntegration | |||
| 59 | "-bindpath", Path.Combine(folder, "data"), | 60 | "-bindpath", Path.Combine(folder, "data"), |
| 60 | "-intermediateFolder", intermediateFolder, | 61 | "-intermediateFolder", intermediateFolder, |
| 61 | "-o", Path.Combine(baseFolder, @"bin\test.msi") | 62 | "-o", Path.Combine(baseFolder, @"bin\test.msi") |
| 62 | }, out var messages); | 63 | }); |
| 63 | Assert.Equal(0, result); | 64 | |
| 65 | result.AssertSuccess(); | ||
| 64 | } | 66 | } |
| 65 | } | 67 | } |
| 66 | 68 | ||
| @@ -83,10 +85,10 @@ namespace WixToolsetTest.CoreIntegration | |||
| 83 | "-bindpath", Path.Combine(folder, "data"), | 85 | "-bindpath", Path.Combine(folder, "data"), |
| 84 | "-intermediateFolder", intermediateFolder, | 86 | "-intermediateFolder", intermediateFolder, |
| 85 | "-o", Path.Combine(baseFolder, @"bin\test.msi") | 87 | "-o", Path.Combine(baseFolder, @"bin\test.msi") |
| 86 | }, out var messages); | 88 | }); |
| 87 | 89 | ||
| 88 | Assert.Equal(147, result); | 90 | Assert.Equal(147, result.ExitCode); |
| 89 | Assert.StartsWith("Found a <?if?>", messages.Single().ToString()); | 91 | Assert.StartsWith("Found a <?if?>", result.Messages.Single().ToString()); |
| 90 | } | 92 | } |
| 91 | } | 93 | } |
| 92 | } | 94 | } |
