blob: f040905dffff2351ab0499b117d9d235bed2e034 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// 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.
namespace WixToolsetTest.BurnE2E
{
using WixTestTools;
using Xunit.Abstractions;
public class ElevationTests : BurnE2ETests
{
public ElevationTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { }
/// <summary>
/// This test calls Elevate after Detect, and then calls Plan in OnElevateBegin.
/// After calling Plan, it pumps some messages to simulate UI like the UAC callback.
/// </summary>
[RuntimeFact]
public void CanExplicitlyElevateAndPlanFromOnElevateBegin()
{
var packageA = this.CreatePackageInstaller("PackageA");
var bundleA = this.CreateBundleInstaller("BundleA");
var testBAController = this.CreateTestBAController();
testBAController.SetExplicitlyElevateAndPlanFromOnElevateBegin();
bundleA.Install();
bundleA.VerifyRegisteredAndInPackageCache();
packageA.VerifyInstalled(true);
}
}
}
|