diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2021-01-02 23:20:25 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-01-03 15:49:32 -0600 |
| commit | d5e31dec3a753f98955f3cde3d49a653cfc4aed0 (patch) | |
| tree | bb1c4b97c125652cfca7cf26faad1000ae0ba0a7 /src/test/WixToolsetTest.CoreIntegration/RollbackBoundaryFixture.cs | |
| parent | df40c2722e4a41e01cf326353e2583ae82ccc9a4 (diff) | |
| download | wix-d5e31dec3a753f98955f3cde3d49a653cfc4aed0.tar.gz wix-d5e31dec3a753f98955f3cde3d49a653cfc4aed0.tar.bz2 wix-d5e31dec3a753f98955f3cde3d49a653cfc4aed0.zip | |
Add failing tests.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/RollbackBoundaryFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/RollbackBoundaryFixture.cs | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/RollbackBoundaryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/RollbackBoundaryFixture.cs new file mode 100644 index 00000000..b713920c --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/RollbackBoundaryFixture.cs | |||
| @@ -0,0 +1,41 @@ | |||
| 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.IO; | ||
| 6 | using WixBuildTools.TestSupport; | ||
| 7 | using WixToolset.Core.TestPackage; | ||
| 8 | using Xunit; | ||
| 9 | |||
| 10 | public class RollbackBoundaryFixture | ||
| 11 | { | ||
| 12 | [Fact(Skip = "Test demonstrates failure")] | ||
| 13 | public void CanStartChainWithRollbackBoundary() | ||
| 14 | { | ||
| 15 | var folder = TestData.Get(@"TestData"); | ||
| 16 | |||
| 17 | using (var fs = new DisposableFileSystem()) | ||
| 18 | { | ||
| 19 | var baseFolder = fs.GetFolder(); | ||
| 20 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 21 | var exePath = Path.Combine(baseFolder, @"bin\test.exe"); | ||
| 22 | |||
| 23 | var result = WixRunner.Execute(new[] | ||
| 24 | { | ||
| 25 | "build", | ||
| 26 | Path.Combine(folder, "RollbackBoundary", "BeginningOfChain.wxs"), | ||
| 27 | Path.Combine(folder, "BundleWithPackageGroupRef", "Bundle.wxs"), | ||
| 28 | Path.Combine(folder, "BundleWithPackageGroupRef", "MinimalPackageGroup.wxs"), | ||
| 29 | "-bindpath", Path.Combine(folder, "SimpleBundle", "data"), | ||
| 30 | "-intermediateFolder", intermediateFolder, | ||
| 31 | "-o", exePath, | ||
| 32 | }); | ||
| 33 | |||
| 34 | result.AssertSuccess(); | ||
| 35 | |||
| 36 | Assert.True(File.Exists(exePath)); | ||
| 37 | } | ||
| 38 | } | ||
| 39 | |||
| 40 | } | ||
| 41 | } | ||
