diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-02-04 20:06:58 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-02-04 20:11:32 -0600 |
| commit | c239e0cc3a28a50c42c63b086ee62e17cf699104 (patch) | |
| tree | 5ba3e85a9bb1aef22a9162629b248a8e27e2c43f /src/test/WixToolsetTest.ComPlus/ComPlusExtensionFixture.cs | |
| parent | cbc09b6cd6d0d0b8bf095a88d4d8333616637f71 (diff) | |
| download | wix-c239e0cc3a28a50c42c63b086ee62e17cf699104.tar.gz wix-c239e0cc3a28a50c42c63b086ee62e17cf699104.tar.bz2 wix-c239e0cc3a28a50c42c63b086ee62e17cf699104.zip | |
Integrate into latest v4.
Diffstat (limited to 'src/test/WixToolsetTest.ComPlus/ComPlusExtensionFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.ComPlus/ComPlusExtensionFixture.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.ComPlus/ComPlusExtensionFixture.cs b/src/test/WixToolsetTest.ComPlus/ComPlusExtensionFixture.cs new file mode 100644 index 00000000..4ff3b5f0 --- /dev/null +++ b/src/test/WixToolsetTest.ComPlus/ComPlusExtensionFixture.cs | |||
| @@ -0,0 +1,32 @@ | |||
| 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.ComPlus | ||
| 4 | { | ||
| 5 | using System.Linq; | ||
| 6 | using WixBuildTools.TestSupport; | ||
| 7 | using WixToolset.Core.TestPackage; | ||
| 8 | using WixToolset.ComPlus; | ||
| 9 | using Xunit; | ||
| 10 | |||
| 11 | public class ComPlusExtensionFixture | ||
| 12 | { | ||
| 13 | [Fact] | ||
| 14 | public void CanBuildUsingComPlusPartition() | ||
| 15 | { | ||
| 16 | var folder = TestData.Get(@"TestData\UsingComPlusPartition"); | ||
| 17 | var build = new Builder(folder, typeof(ComPlusExtensionFactory), new[] { folder }); | ||
| 18 | |||
| 19 | var results = build.BuildAndQuery(Build, "ComPlusPartition"); | ||
| 20 | Assert.Equal(new[] | ||
| 21 | { | ||
| 22 | "ComPlusPartition:", | ||
| 23 | }, results.OrderBy(s => s).ToArray()); | ||
| 24 | } | ||
| 25 | |||
| 26 | private static void Build(string[] args) | ||
| 27 | { | ||
| 28 | var result = WixRunner.Execute(args) | ||
| 29 | .AssertSuccess(); | ||
| 30 | } | ||
| 31 | } | ||
| 32 | } | ||
