| 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 WixTestTools; |
| 6 | using Xunit.Abstractions; |
| 7 | |
| 8 | public class ContainerTests : BurnE2ETests |
| 9 | { |
| 10 | public ContainerTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } |
| 11 | |
| 12 | [RuntimeFact] |
| 13 | public void CanSupportMultipleAttachedContainers() |
| 14 | { |
| 15 | var packageA = this.CreatePackageInstaller("PackageA"); |
| 16 | var packageB = this.CreatePackageInstaller("PackageB"); |
| 17 | var bundleA = this.CreateBundleInstaller("BundleA"); |
| 18 | |
| 19 | packageA.VerifyInstalled(false); |
| 20 | packageB.VerifyInstalled(false); |
| 21 | |
| 22 | bundleA.Install(); |
| 23 | bundleA.VerifyRegisteredAndInPackageCache(); |
| 24 | |
| 25 | packageA.VerifyInstalled(true); |
| 26 | packageB.VerifyInstalled(true); |
| 27 | } |
| 28 | |
| 29 | [RuntimeFact] |
| 30 | public void CanSupportMultipleDetachedContainers() |
| 31 | { |
| 32 | var packageA = this.CreatePackageInstaller("PackageA"); |
| 33 | var packageB = this.CreatePackageInstaller("PackageB"); |
| 34 | var bundleA = this.CreateBundleInstaller("BundleB"); |
| 35 | |
| 36 | packageA.VerifyInstalled(false); |
| 37 | packageB.VerifyInstalled(false); |
| 38 | |
| 39 | bundleA.Install(); |
| 40 | bundleA.VerifyRegisteredAndInPackageCache(); |
| 41 | |
| 42 | packageA.VerifyInstalled(true); |
| 43 | packageB.VerifyInstalled(true); |
| 44 | } |
| 45 | } |
| 46 | } |