| 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.MsiE2E |
| 4 | { |
| 5 | using System; |
| 6 | using WixTestTools; |
| 7 | using Xunit; |
| 8 | using Xunit.Abstractions; |
| 9 | |
| 10 | public class ComPlusExtensionTests : MsiE2ETests |
| 11 | { |
| 12 | public ComPlusExtensionTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } |
| 13 | |
| 14 | [RuntimeFact] |
| 15 | public void CanInstallUninstallNativeWithoutPartitions() |
| 16 | { |
| 17 | var product = this.CreatePackageInstaller("InstallUninstallNativeWithoutPartitions"); |
| 18 | product.InstallProduct(MSIExec.MSIExecReturnCode.SUCCESS); |
| 19 | |
| 20 | product.UninstallProduct(MSIExec.MSIExecReturnCode.SUCCESS); |
| 21 | } |
| 22 | |
| 23 | [RuntimeFact] |
| 24 | public void CanInstallUninstallNET3WithoutPartitions() |
| 25 | { |
| 26 | var product = this.CreatePackageInstaller("InstallUninstallNET3WithoutPartitions"); |
| 27 | product.InstallProduct(MSIExec.MSIExecReturnCode.SUCCESS); |
| 28 | |
| 29 | product.UninstallProduct(MSIExec.MSIExecReturnCode.SUCCESS); |
| 30 | } |
| 31 | |
| 32 | [RuntimeFact] |
| 33 | public void CanInstallUninstallNET4WithoutPartitions() |
| 34 | { |
| 35 | var product = this.CreatePackageInstaller("InstallUninstallNET4WithoutPartitions"); |
| 36 | product.InstallProduct(MSIExec.MSIExecReturnCode.SUCCESS); |
| 37 | |
| 38 | product.UninstallProduct(MSIExec.MSIExecReturnCode.SUCCESS); |
| 39 | } |
| 40 | |
| 41 | [RuntimeFact(RequireWindowsServer = true)] |
| 42 | public void CanInstallAndUninstallWithPartitions() |
| 43 | { |
| 44 | var product = this.CreatePackageInstaller("InstallUninstallWithPartitions"); |
| 45 | product.InstallProduct(MSIExec.MSIExecReturnCode.SUCCESS); |
| 46 | |
| 47 | product.UninstallProduct(MSIExec.MSIExecReturnCode.SUCCESS); |
| 48 | } |
| 49 | } |
| 50 | } |