diff options
Diffstat (limited to 'src/ext/DifxApp/test/WixToolsetTest.DifxApp/DifxAppExtensionFixture.cs')
-rw-r--r-- | src/ext/DifxApp/test/WixToolsetTest.DifxApp/DifxAppExtensionFixture.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/ext/DifxApp/test/WixToolsetTest.DifxApp/DifxAppExtensionFixture.cs b/src/ext/DifxApp/test/WixToolsetTest.DifxApp/DifxAppExtensionFixture.cs new file mode 100644 index 00000000..f5166453 --- /dev/null +++ b/src/ext/DifxApp/test/WixToolsetTest.DifxApp/DifxAppExtensionFixture.cs | |||
@@ -0,0 +1,36 @@ | |||
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.DifxApp | ||
4 | { | ||
5 | using System.Linq; | ||
6 | using WixBuildTools.TestSupport; | ||
7 | using WixToolset.Core.TestPackage; | ||
8 | using WixToolset.DifxApp; | ||
9 | using Xunit; | ||
10 | |||
11 | public class DifxAppExtensionFixture | ||
12 | { | ||
13 | [Fact] | ||
14 | public void CanBuildUsingDriver() | ||
15 | { | ||
16 | var folder = TestData.Get(@"TestData\UsingDriver"); | ||
17 | var build = new Builder(folder, typeof(DifxAppExtensionFactory), new[] { folder }); | ||
18 | |||
19 | var results = build.BuildAndQuery(Build, "CustomAction"); | ||
20 | Assert.Equal(new[] | ||
21 | { | ||
22 | "CustomAction:MsiCleanupOnSuccess\t1\tDIFxApp.dll\tCleanupOnSuccess\t", | ||
23 | "CustomAction:MsiInstallDrivers\t3073\tDIFxAppA.dll\tInstallDriverPackages\t", | ||
24 | "CustomAction:MsiProcessDrivers\t1\tDIFxApp.dll\tProcessDriverPackages\t", | ||
25 | "CustomAction:MsiRollbackInstall\t3329\tDIFxAppA.dll\tRollbackInstall\t", | ||
26 | "CustomAction:MsiUninstallDrivers\t3073\tDIFxAppA.dll\tUninstallDriverPackages\t", | ||
27 | }, results); | ||
28 | } | ||
29 | |||
30 | private static void Build(string[] args) | ||
31 | { | ||
32 | var result = WixRunner.Execute(args) | ||
33 | .AssertSuccess(); | ||
34 | } | ||
35 | } | ||
36 | } | ||