diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-05-23 21:54:53 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-05-23 21:59:28 +1000 |
| commit | 9c54d2fce80983bbee5f0f113b5aa30f22bc8a23 (patch) | |
| tree | 77712f1e3ac68e9f2de2172d035aaae0b27f5de2 /src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs | |
| parent | 96e966ce322bc630afed6d0ca8c9ec68191c5f83 (diff) | |
| download | wix-9c54d2fce80983bbee5f0f113b5aa30f22bc8a23.tar.gz wix-9c54d2fce80983bbee5f0f113b5aa30f22bc8a23.tar.bz2 wix-9c54d2fce80983bbee5f0f113b5aa30f22bc8a23.zip | |
Add failing test for RegistryKey without Id and child extension element.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs b/src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs new file mode 100644 index 00000000..8482dcbe --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/BadInputFixture.cs | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolsetTest.CoreIntegration | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using System.IO; | ||
| 7 | using WixBuildTools.TestSupport; | ||
| 8 | using WixToolset.Core.TestPackage; | ||
| 9 | using Xunit; | ||
| 10 | |||
| 11 | public class BadInputFixture | ||
| 12 | { | ||
| 13 | [Fact(Skip = "Test demonstrates failure")] | ||
| 14 | public void RegistryKeyWithoutAttributesDoesntCrash() | ||
| 15 | { | ||
| 16 | var folder = TestData.Get(@"TestData\BadInput"); | ||
| 17 | |||
| 18 | using (var fs = new DisposableFileSystem()) | ||
| 19 | { | ||
| 20 | var baseFolder = fs.GetFolder(); | ||
| 21 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 22 | var wixlibPath = Path.Combine(intermediateFolder, @"test.wixlib"); | ||
| 23 | |||
| 24 | var result = WixRunner.Execute(new[] | ||
| 25 | { | ||
| 26 | "build", | ||
| 27 | Path.Combine(folder, "RegistryKey.wxs"), | ||
| 28 | "-intermediateFolder", intermediateFolder, | ||
| 29 | "-o", wixlibPath, | ||
| 30 | }); | ||
| 31 | |||
| 32 | Assert.InRange(result.ExitCode, 2, Int32.MaxValue); | ||
| 33 | } | ||
| 34 | } | ||
| 35 | } | ||
| 36 | } | ||
