diff options
Diffstat (limited to 'src/test/WixToolsetTest.Netfx/NetfxExtensionFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.Netfx/NetfxExtensionFixture.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.Netfx/NetfxExtensionFixture.cs b/src/test/WixToolsetTest.Netfx/NetfxExtensionFixture.cs new file mode 100644 index 00000000..a9428d7c --- /dev/null +++ b/src/test/WixToolsetTest.Netfx/NetfxExtensionFixture.cs | |||
| @@ -0,0 +1,33 @@ | |||
| 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.Netfx | ||
| 4 | { | ||
| 5 | using System.Linq; | ||
| 6 | using WixBuildTools.TestSupport; | ||
| 7 | using WixToolset.Core.TestPackage; | ||
| 8 | using WixToolset.Netfx; | ||
| 9 | using Xunit; | ||
| 10 | |||
| 11 | public class NetfxExtensionFixture | ||
| 12 | { | ||
| 13 | [Fact] | ||
| 14 | public void CanBuildUsingNativeImage() | ||
| 15 | { | ||
| 16 | var folder = TestData.Get(@"TestData\UsingNativeImage"); | ||
| 17 | var build = new Builder(folder, typeof(NetfxExtensionFactory), new[] { folder }); | ||
| 18 | |||
| 19 | var results = build.BuildAndQuery(Build, "NetFxNativeImage"); | ||
| 20 | Assert.Equal(new[] | ||
| 21 | { | ||
| 22 | "NetFxNativeImage:ExampleNgen\tfil6349_KNDJhqShNzVdHX3ihhvA6Y\t3\t8\t\t", | ||
| 23 | }, results.OrderBy(s => s).ToArray()); | ||
| 24 | } | ||
| 25 | |||
| 26 | private static void Build(string[] args) | ||
| 27 | { | ||
| 28 | var result = WixRunner.Execute(args, out var messages); | ||
| 29 | Assert.Equal(0, result); | ||
| 30 | Assert.Empty(messages); | ||
| 31 | } | ||
| 32 | } | ||
| 33 | } | ||
