diff options
| author | Rob Mensching <rob@firegiant.com> | 2018-01-01 10:30:42 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2018-01-01 22:47:02 -0800 |
| commit | 60d7baefb4e87bf0ddaae58a653faee0be0429f6 (patch) | |
| tree | e520865fd6da2368c5d33a4c98cca457bd8a8343 /src/test/WixToolsetTest.Netfx/NetfxExtensionFixture.cs | |
| parent | 9c66865ab3e4b3c4cbcb721e22fd668dd4350afa (diff) | |
| download | wix-60d7baefb4e87bf0ddaae58a653faee0be0429f6.tar.gz wix-60d7baefb4e87bf0ddaae58a653faee0be0429f6.tar.bz2 wix-60d7baefb4e87bf0ddaae58a653faee0be0429f6.zip | |
Initial code commit
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 | } | ||
