diff options
Diffstat (limited to 'src/test/burn/WixToolsetTest.BurnE2E/ElevationTests.cs')
-rw-r--r-- | src/test/burn/WixToolsetTest.BurnE2E/ElevationTests.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/test/burn/WixToolsetTest.BurnE2E/ElevationTests.cs b/src/test/burn/WixToolsetTest.BurnE2E/ElevationTests.cs new file mode 100644 index 00000000..54a89469 --- /dev/null +++ b/src/test/burn/WixToolsetTest.BurnE2E/ElevationTests.cs | |||
@@ -0,0 +1,30 @@ | |||
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.BurnE2E | ||
4 | { | ||
5 | using Xunit; | ||
6 | using Xunit.Abstractions; | ||
7 | |||
8 | public class ElevationTests : BurnE2ETests | ||
9 | { | ||
10 | public ElevationTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } | ||
11 | |||
12 | /// <summary> | ||
13 | /// This test calls Elevate after Detect, and then calls Plan in OnElevateBegin. | ||
14 | /// After calling Plan, it pumps some messages to simulate UI like the UAC callback. | ||
15 | /// </summary> | ||
16 | [Fact(Skip = "https://github.com/wixtoolset/issues/issues/6349")] // CAUTION: this test currently hangs because the Plan request gets dropped. | ||
17 | public void CanExplicitlyElevateAndPlanFromOnElevateBegin() | ||
18 | { | ||
19 | var packageA = this.CreatePackageInstaller("PackageA"); | ||
20 | var bundleA = this.CreateBundleInstaller("BundleA"); | ||
21 | var testBAController = this.CreateTestBAController(); | ||
22 | |||
23 | testBAController.SetExplicitlyElevateAndPlanFromOnElevateBegin(); | ||
24 | |||
25 | bundleA.Install(); | ||
26 | bundleA.VerifyRegisteredAndInPackageCache(); | ||
27 | packageA.VerifyInstalled(true); | ||
28 | } | ||
29 | } | ||
30 | } | ||