aboutsummaryrefslogtreecommitdiff
path: root/src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs')
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/BindVariablesFixture.cs38
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
3namespace 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}