aboutsummaryrefslogtreecommitdiff
path: root/src/test/msi/WixToolsetTest.MsiE2E/ComPlusExtensionTests.cs
blob: b143c19d04844c0efc2f42381fa97e35d3b118b0 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// 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.MsiE2E
{
    using System;
    using WixTestTools;
    using Xunit;
    using Xunit.Abstractions;

    public class ComPlusExtensionTests : MsiE2ETests
    {
        public ComPlusExtensionTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { }

        [RuntimeFact]
        public void CanInstallUninstallNativeWithoutPartitions()
        {
            var product = this.CreatePackageInstaller("InstallUninstallNativeWithoutPartitions");
            product.InstallProduct(MSIExec.MSIExecReturnCode.SUCCESS);

            product.UninstallProduct(MSIExec.MSIExecReturnCode.SUCCESS);
        }

        [RuntimeFact]
        public void CanInstallUninstallNET3WithoutPartitions()
        {
            var product = this.CreatePackageInstaller("InstallUninstallNET3WithoutPartitions");
            product.InstallProduct(MSIExec.MSIExecReturnCode.SUCCESS);

            product.UninstallProduct(MSIExec.MSIExecReturnCode.SUCCESS);
        }

        [RuntimeFact]
        public void CanInstallUninstallNET4WithoutPartitions()
        {
            var product = this.CreatePackageInstaller("InstallUninstallNET4WithoutPartitions");
            product.InstallProduct(MSIExec.MSIExecReturnCode.SUCCESS);

            product.UninstallProduct(MSIExec.MSIExecReturnCode.SUCCESS);
        }

        [RuntimeFact(RequireWindowsServer = true)]
        public void CanInstallAndUninstallWithPartitions()
        {
            var product = this.CreatePackageInstaller("InstallUninstallWithPartitions");
            product.InstallProduct(MSIExec.MSIExecReturnCode.SUCCESS);

            product.UninstallProduct(MSIExec.MSIExecReturnCode.SUCCESS);
        }
    }
}