diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs | 23 | ||||
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/TestData/BadInput/InvalidIds.wxs | 8 |
2 files changed, 31 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 | { |
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/BadInput/InvalidIds.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/BadInput/InvalidIds.wxs new file mode 100644 index 00000000..78f3ebd3 --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/BadInput/InvalidIds.wxs | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8" ?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
| 3 | <Fragment> | ||
| 4 | <Component Id="@#$" Guid="{2F18F52A-9E24-4ebe-A5FC-974089AA03D2}" Directory="WixTestFolder"> | ||
| 5 | <CreateFolder Directory="WixTestFolder" /> | ||
| 6 | </Component> | ||
| 7 | </Fragment> | ||
| 8 | </Wix> | ||
