diff options
author | Rob Mensching <rob@firegiant.com> | 2021-05-04 22:45:02 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-04 22:45:02 -0700 |
commit | fe2f7e06c595a4e7115d83c4cc8a05b28db5002a (patch) | |
tree | 8f46339d2ccbc2ec97c9e77e857bd72f07412a2e /src/ext/DirectX/test/WixToolsetTest.DirectX/DirectXExtensionFixture.cs | |
parent | 232ea0120f67d4d445fd5fbb09a8852b2668310a (diff) | |
download | wix-fe2f7e06c595a4e7115d83c4cc8a05b28db5002a.tar.gz wix-fe2f7e06c595a4e7115d83c4cc8a05b28db5002a.tar.bz2 wix-fe2f7e06c595a4e7115d83c4cc8a05b28db5002a.zip |
Move DirectX.wixext into ext
Diffstat (limited to 'src/ext/DirectX/test/WixToolsetTest.DirectX/DirectXExtensionFixture.cs')
-rw-r--r-- | src/ext/DirectX/test/WixToolsetTest.DirectX/DirectXExtensionFixture.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/ext/DirectX/test/WixToolsetTest.DirectX/DirectXExtensionFixture.cs b/src/ext/DirectX/test/WixToolsetTest.DirectX/DirectXExtensionFixture.cs new file mode 100644 index 00000000..81a5fb00 --- /dev/null +++ b/src/ext/DirectX/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\t", | ||
23 | }, results); | ||
24 | } | ||
25 | |||
26 | private static void Build(string[] args) | ||
27 | { | ||
28 | var result = WixRunner.Execute(args) | ||
29 | .AssertSuccess(); | ||
30 | } | ||
31 | } | ||
32 | } | ||