// 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) { } /// /// 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. /// [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); } } }