| 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 WixInternal.TestSupport; |
| 7 | using WixInternal.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", "Binary"); |
| 20 | WixAssert.CompareLineByLine(new[] |
| 21 | { |
| 22 | "Binary:Wix4DXCA_X86\t[Binary data]", |
| 23 | "CustomAction:Wix4QueryDirectXCaps_X86\t65\tWix4DXCA_X86\tWixQueryDirectXCaps\t", |
| 24 | }, results); |
| 25 | } |
| 26 | |
| 27 | private static void Build(string[] args) |
| 28 | { |
| 29 | var result = WixRunner.Execute(args) |
| 30 | .AssertSuccess(); |
| 31 | } |
| 32 | } |
| 33 | } |