diff options
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs')
-rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs b/src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs index d6c7b091..7a630a36 100644 --- a/src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs | |||
@@ -32,5 +32,28 @@ namespace WixToolsetTest.CoreIntegration | |||
32 | Assert.InRange(result.ExitCode, 2, Int32.MaxValue); | 32 | Assert.InRange(result.ExitCode, 2, Int32.MaxValue); |
33 | } | 33 | } |
34 | } | 34 | } |
35 | |||
36 | [Fact] | ||
37 | public void BundleVariableWithBadTypeIsRejected() | ||
38 | { | ||
39 | var folder = TestData.Get(@"TestData\BadInput"); | ||
40 | |||
41 | using (var fs = new DisposableFileSystem()) | ||
42 | { | ||
43 | var baseFolder = fs.GetFolder(); | ||
44 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
45 | var wixlibPath = Path.Combine(intermediateFolder, @"test.wixlib"); | ||
46 | |||
47 | var result = WixRunner.Execute(new[] | ||
48 | { | ||
49 | "build", | ||
50 | Path.Combine(folder, "BundleVariable.wxs"), | ||
51 | "-intermediateFolder", intermediateFolder, | ||
52 | "-o", wixlibPath, | ||
53 | }); | ||
54 | |||
55 | Assert.Equal(21, result.ExitCode); | ||
56 | } | ||
57 | } | ||
35 | } | 58 | } |
36 | } | 59 | } |