diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-01-07 14:50:40 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-01-07 15:17:07 -0800 |
| commit | 1b10d394bc88c2840b355bb72c1a502181c28ca2 (patch) | |
| tree | 263f4ee20fbe8f42b71c520b0b203195161cf9fe /src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs | |
| parent | 093e1dd144b260b58a0ae46d722d1dbc4019d9d5 (diff) | |
| download | wix-1b10d394bc88c2840b355bb72c1a502181c28ca2.tar.gz wix-1b10d394bc88c2840b355bb72c1a502181c28ca2.tar.bz2 wix-1b10d394bc88c2840b355bb72c1a502181c28ca2.zip | |
Add test for invalid ids
Closes wixtoolset/issues#5464
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 874151e4..c5168856 100644 --- a/src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs | |||
| @@ -25,6 +25,29 @@ namespace WixToolsetTest.CoreIntegration | |||
| 25 | //Assert.Equal((int)ErrorMessages.Ids.ExpectedArgument, result.ExitCode); | 25 | //Assert.Equal((int)ErrorMessages.Ids.ExpectedArgument, result.ExitCode); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | [Fact] | ||
| 29 | public void HandleInvalidIds() | ||
| 30 | { | ||
| 31 | var folder = TestData.Get(@"TestData\BadInput"); | ||
| 32 | |||
| 33 | using (var fs = new DisposableFileSystem()) | ||
| 34 | { | ||
| 35 | var baseFolder = fs.GetFolder(); | ||
| 36 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 37 | var wixlibPath = Path.Combine(intermediateFolder, @"test.wixlib"); | ||
| 38 | |||
| 39 | var result = WixRunner.Execute(new[] | ||
| 40 | { | ||
| 41 | "build", | ||
| 42 | Path.Combine(folder, "InvalidIds.wxs"), | ||
| 43 | "-intermediateFolder", intermediateFolder, | ||
| 44 | "-o", wixlibPath, | ||
| 45 | }); | ||
| 46 | |||
| 47 | Assert.Equal(330, result.ExitCode); | ||
| 48 | } | ||
| 49 | } | ||
| 50 | |||
| 28 | [Fact(Skip = "Test demonstrates failure")] | 51 | [Fact(Skip = "Test demonstrates failure")] |
| 29 | public void CantBuildSingleExeBundleWithInvalidArgument() | 52 | public void CantBuildSingleExeBundleWithInvalidArgument() |
| 30 | { | 53 | { |
