aboutsummaryrefslogtreecommitdiff
path: root/src/test/WixToolsetTest.CoreIntegration/DependencyExtensionFixture.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/DependencyExtensionFixture.cs')
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/DependencyExtensionFixture.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/DependencyExtensionFixture.cs b/src/test/WixToolsetTest.CoreIntegration/DependencyExtensionFixture.cs
new file mode 100644
index 00000000..14eb8ff7
--- /dev/null
+++ b/src/test/WixToolsetTest.CoreIntegration/DependencyExtensionFixture.cs
@@ -0,0 +1,30 @@
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 WixBuildTools.TestSupport;
6 using WixToolset.Core.TestPackage;
7 using Xunit;
8
9 public class DependencyExtensionFixture
10 {
11 [Fact]
12 public void CanBuildUsingProvides()
13 {
14 var folder = TestData.Get(@"TestData\UsingProvides");
15 var build = new Builder(folder, null, new[] { folder });
16
17 var results = build.BuildAndQuery(Build, "WixDependencyProvider");
18 Assert.Equal(new[]
19 {
20 "WixDependencyProvider:dep74OfIcniaqxA7EprRGBw4Oyy3r8\tfilF5_pLhBuF5b4N9XEo52g_hUM5Lo\tUsingProvides\t\t\t",
21 }, results);
22 }
23
24 private static void Build(string[] args)
25 {
26 var result = WixRunner.Execute(args)
27 .AssertSuccess();
28 }
29 }
30}