diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-02-02 14:07:55 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-02-02 14:17:41 -0600 |
| commit | 73e6559b809f5f5ae2041d22ec81479df0fe91f9 (patch) | |
| tree | b2da1bf50403fbc9fc933f681c34662959edb628 /src/test/WixToolsetTest.DirectX/DirectXExtensionFixture.cs | |
| parent | c7bed5a084324ba94aae5108bac94374ce9dfe39 (diff) | |
| download | wix-73e6559b809f5f5ae2041d22ec81479df0fe91f9.tar.gz wix-73e6559b809f5f5ae2041d22ec81479df0fe91f9.tar.bz2 wix-73e6559b809f5f5ae2041d22ec81479df0fe91f9.zip | |
Integrate into latest v4.
Diffstat (limited to 'src/test/WixToolsetTest.DirectX/DirectXExtensionFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.DirectX/DirectXExtensionFixture.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.DirectX/DirectXExtensionFixture.cs b/src/test/WixToolsetTest.DirectX/DirectXExtensionFixture.cs new file mode 100644 index 00000000..b11cb7fc --- /dev/null +++ b/src/test/WixToolsetTest.DirectX/DirectXExtensionFixture.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.DirectX | ||
| 4 | { | ||
| 5 | using System.Linq; | ||
| 6 | using WixBuildTools.TestSupport; | ||
| 7 | using WixToolset.Core.TestPackage; | ||
| 8 | using WixToolset.DirectX; | ||
| 9 | using Xunit; | ||
| 10 | |||
| 11 | public class DirectXExtensionFixture | ||
| 12 | { | ||
| 13 | [Fact] | ||
| 14 | public void CanBuildUsingPixelShaderVersion() | ||
| 15 | { | ||
| 16 | var folder = TestData.Get(@"TestData\UsingPixelShaderVersion"); | ||
| 17 | var build = new Builder(folder, typeof(DirectXExtensionFactory), new[] { folder }); | ||
| 18 | |||
| 19 | var results = build.BuildAndQuery(Build, "CustomAction"); | ||
| 20 | Assert.Equal(new[] | ||
| 21 | { | ||
| 22 | "CustomAction:WixQueryDirectXCaps\t65\tDirectXCA\tWixQueryDirectXCaps\t0", | ||
| 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 | } | ||
