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/PayloadFixture.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/PayloadFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs b/src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs index 4fc57c76..5b6bbeb5 100644 --- a/src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/PayloadFixture.cs | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | namespace WixToolsetTest.CoreIntegration | 3 | namespace WixToolsetTest.CoreIntegration |
| 4 | { | 4 | { |
| 5 | using System; | 5 | using System; |
| 6 | using System.Collections.Generic; | ||
| 6 | using System.IO; | 7 | using System.IO; |
| 7 | using System.Linq; | 8 | using System.Linq; |
| 8 | using WixBuildTools.TestSupport; | 9 | using WixBuildTools.TestSupport; |
| @@ -114,5 +115,31 @@ namespace WixToolsetTest.CoreIntegration | |||
| 114 | Assert.Equal(expectedPayloadMustBeRelativeToCache, result.Messages.Where(m => m.Id == (int)ErrorMessages.Ids.PayloadMustBeRelativeToCache).Count()); | 115 | Assert.Equal(expectedPayloadMustBeRelativeToCache, result.Messages.Where(m => m.Id == (int)ErrorMessages.Ids.PayloadMustBeRelativeToCache).Count()); |
| 115 | } | 116 | } |
| 116 | } | 117 | } |
| 118 | |||
| 119 | [Fact(Skip = "https://github.com/wixtoolset/issues/issues/5273")] | ||
| 120 | public void RejectsPayloadSharedBetweenPackageAndBA() | ||
| 121 | { | ||
| 122 | var folder = TestData.Get(@"TestData"); | ||
| 123 | |||
| 124 | using (var fs = new DisposableFileSystem()) | ||
| 125 | { | ||
| 126 | var baseFolder = fs.GetFolder(); | ||
| 127 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 128 | var bundlePath = Path.Combine(baseFolder, @"bin\test.exe"); | ||
| 129 | |||
| 130 | var result = WixRunner.Execute(new[] | ||
| 131 | { | ||
| 132 | "build", | ||
| 133 | Path.Combine(folder, "Payload", "SharedBAAndPackagePayloadBundle.wxs"), | ||
| 134 | Path.Combine(folder, "BundleWithPackageGroupRef", "Bundle.wxs"), | ||
| 135 | "-bindpath", Path.Combine(folder, "SimpleBundle", "data"), | ||
| 136 | "-bindpath", Path.Combine(folder, ".Data"), | ||
| 137 | "-intermediateFolder", intermediateFolder, | ||
| 138 | "-o", bundlePath, | ||
| 139 | }); | ||
| 140 | |||
| 141 | Assert.InRange(result.ExitCode, 2, int.MaxValue); | ||
| 142 | } | ||
| 143 | } | ||
| 117 | } | 144 | } |
| 118 | } | 145 | } |
