summaryrefslogtreecommitdiff
path: root/src/test/burn/WixToolsetTest.BurnE2E/ContainerTests.cs
blob: cd6beaa953ff7f8b77321fbfc5aa24c562504075 (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
// 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 Xunit;
    using Xunit.Abstractions;

    public class ContainerTests : BurnE2ETests
    {
        public ContainerTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { }

        [Fact]
        public void CanSupportMultipleAttachedContainers()
        {
            var packageA = this.CreatePackageInstaller("PackageA");
            var packageB = this.CreatePackageInstaller("PackageB");
            var bundleA = this.CreateBundleInstaller("BundleA");

            packageA.VerifyInstalled(false);
            packageB.VerifyInstalled(false);

            bundleA.Install();
            bundleA.VerifyRegisteredAndInPackageCache();

            packageA.VerifyInstalled(true);
            packageB.VerifyInstalled(true);
        }
    }
}