diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-02-26 11:24:10 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-02-27 07:47:08 -0800 |
| commit | 5fd1b7ff82f17d55c8357fe76898a1bdc5953476 (patch) | |
| tree | 5ec191ebf43009daf9bde6d0c26879b181b9a71b /src/test/WixToolsetTest.CoreIntegration/DependencyExtensionFixture.cs | |
| parent | 760fb810ba5ecc3c6ce752a9bfa3755f7b7c0f6a (diff) | |
| download | wix-5fd1b7ff82f17d55c8357fe76898a1bdc5953476.tar.gz wix-5fd1b7ff82f17d55c8357fe76898a1bdc5953476.tar.bz2 wix-5fd1b7ff82f17d55c8357fe76898a1bdc5953476.zip | |
Absorb Dependency.wixext into Core
Partly resolves wixtoolset/issues#5949
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/DependencyExtensionFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/DependencyExtensionFixture.cs | 30 |
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 | |||
| 3 | namespace 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 | } | ||
