diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-05-23 19:48:43 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-05-23 19:51:44 +1000 |
| commit | 96e966ce322bc630afed6d0ca8c9ec68191c5f83 (patch) | |
| tree | 55a3bba67cdc92841d6f8ca496b8813dfbc63991 | |
| parent | c4497aa78b2d85b2613af64311bf282756aff43a (diff) | |
| download | wix-96e966ce322bc630afed6d0ca8c9ec68191c5f83.tar.gz wix-96e966ce322bc630afed6d0ca8c9ec68191c5f83.tar.bz2 wix-96e966ce322bc630afed6d0ca8c9ec68191c5f83.zip | |
Add failing test for invalid command line switch.
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs b/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs index a1896d0d..96a9a013 100644 --- a/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs | |||
| @@ -174,6 +174,35 @@ namespace WixToolsetTest.CoreIntegration | |||
| 174 | } | 174 | } |
| 175 | } | 175 | } |
| 176 | 176 | ||
| 177 | [Fact(Skip = "Test demonstrates failure")] | ||
| 178 | public void CantBuildSingleExeBundleWithInvalidArgument() | ||
| 179 | { | ||
| 180 | var folder = TestData.Get(@"TestData"); | ||
| 181 | |||
| 182 | using (var fs = new DisposableFileSystem()) | ||
| 183 | { | ||
| 184 | var baseFolder = fs.GetFolder(); | ||
| 185 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 186 | var exePath = Path.Combine(baseFolder, @"bin\test.exe"); | ||
| 187 | |||
| 188 | var result = WixRunner.Execute(new[] | ||
| 189 | { | ||
| 190 | "build", | ||
| 191 | Path.Combine(folder, "SingleExeBundle", "SingleExePackageGroup.wxs"), | ||
| 192 | Path.Combine(folder, "BundleWithPackageGroupRef", "Bundle.wxs"), | ||
| 193 | "-bindpath", Path.Combine(folder, "SimpleBundle", "data"), | ||
| 194 | "-bindpath", Path.Combine(folder, ".Data"), | ||
| 195 | "-intermediateFolder", intermediateFolder, | ||
| 196 | "-o", exePath, | ||
| 197 | "-nonexistentswitch", "param", | ||
| 198 | }); | ||
| 199 | |||
| 200 | Assert.NotEqual(0, result.ExitCode); | ||
| 201 | |||
| 202 | Assert.False(File.Exists(exePath)); | ||
| 203 | } | ||
| 204 | } | ||
| 205 | |||
| 177 | [Fact] | 206 | [Fact] |
| 178 | public void CanBuildSingleExeRemotePayloadBundle() | 207 | public void CanBuildSingleExeRemotePayloadBundle() |
| 179 | { | 208 | { |
