diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-07-17 10:42:30 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-07-17 15:27:13 -0700 |
| commit | c37f29a156a84e27e6b38a7841e2ddcde015b071 (patch) | |
| tree | d9ff8d98970a103dcb31c1fc045d4c3031bf2a40 /src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs | |
| parent | 0db15d84eaabf2f1950784655ddd79413cfea44f (diff) | |
| download | wix-c37f29a156a84e27e6b38a7841e2ddcde015b071.tar.gz wix-c37f29a156a84e27e6b38a7841e2ddcde015b071.tar.bz2 wix-c37f29a156a84e27e6b38a7841e2ddcde015b071.zip | |
Fix parsing of bind variables with default values
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs b/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs new file mode 100644 index 00000000..3e9c7aa4 --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs | |||
| @@ -0,0 +1,38 @@ | |||
| 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 BindVariablesFixture | ||
| 12 | { | ||
| 13 | [Fact] | ||
| 14 | public void CanBuildWithDefaultValue() | ||
| 15 | { | ||
| 16 | var folder = TestData.Get(@"TestData\BindVariables"); | ||
| 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, "DefaultedVariable.wxs"), | ||
| 28 | "-bf", | ||
| 29 | "-intermediateFolder", intermediateFolder, | ||
| 30 | "-bindpath", folder, | ||
| 31 | "-o", wixlibPath, | ||
| 32 | }); | ||
| 33 | |||
| 34 | result.AssertSuccess(); | ||
| 35 | } | ||
| 36 | } | ||
| 37 | } | ||
| 38 | } | ||
