diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-04-22 17:19:56 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-04-29 19:53:52 -0700 |
| commit | 8cf0427984a88b0b3ddfb2061e5be721afffe82e (patch) | |
| tree | 22e2aaf7665d5ab6d3dc2a8ce8f05d73080d1f20 /src/test/WixToolsetTest.CoreIntegration/ExePackageFixture.cs | |
| parent | 8426095723fb8530a321260473ab543151bf8c98 (diff) | |
| download | wix-8cf0427984a88b0b3ddfb2061e5be721afffe82e.tar.gz wix-8cf0427984a88b0b3ddfb2061e5be721afffe82e.tar.bz2 wix-8cf0427984a88b0b3ddfb2061e5be721afffe82e.zip | |
Move Core into wix
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/ExePackageFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/ExePackageFixture.cs | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/ExePackageFixture.cs b/src/test/WixToolsetTest.CoreIntegration/ExePackageFixture.cs deleted file mode 100644 index e2306dcd..00000000 --- a/src/test/WixToolsetTest.CoreIntegration/ExePackageFixture.cs +++ /dev/null | |||
| @@ -1,52 +0,0 @@ | |||
| 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 ExePackageFixture | ||
| 11 | { | ||
| 12 | [Fact] | ||
| 13 | public void ErrorWhenMissingDetectCondition() | ||
| 14 | { | ||
| 15 | var folder = TestData.Get(@"TestData", "ExePackage"); | ||
| 16 | |||
| 17 | using (var fs = new DisposableFileSystem()) | ||
| 18 | { | ||
| 19 | var baseFolder = fs.GetFolder(); | ||
| 20 | |||
| 21 | var result = WixRunner.Execute(new[] | ||
| 22 | { | ||
| 23 | "build", | ||
| 24 | Path.Combine(folder, "MissingDetectCondition.wxs"), | ||
| 25 | "-o", Path.Combine(baseFolder, "test.wixlib") | ||
| 26 | }); | ||
| 27 | |||
| 28 | Assert.Equal(1153, result.ExitCode); | ||
| 29 | } | ||
| 30 | } | ||
| 31 | |||
| 32 | [Fact] | ||
| 33 | public void ErrorWhenRequireDetectCondition() | ||
| 34 | { | ||
| 35 | var folder = TestData.Get(@"TestData", "ExePackage"); | ||
| 36 | |||
| 37 | using (var fs = new DisposableFileSystem()) | ||
| 38 | { | ||
| 39 | var baseFolder = fs.GetFolder(); | ||
| 40 | |||
| 41 | var result = WixRunner.Execute(new[] | ||
| 42 | { | ||
| 43 | "build", | ||
| 44 | Path.Combine(folder, "RequireDetectCondition.wxs"), | ||
| 45 | "-o", Path.Combine(baseFolder, "test.wixlib") | ||
| 46 | }); | ||
| 47 | |||
| 48 | Assert.Equal(401, result.ExitCode); | ||
| 49 | } | ||
| 50 | } | ||
| 51 | } | ||
| 52 | } | ||
