aboutsummaryrefslogtreecommitdiff
path: root/src/test/msi
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/msi')
-rw-r--r--src/test/msi/TestData/MsmqExtensionTests/MsmqInstall/MsmqInstall.wixproj13
-rw-r--r--src/test/msi/TestData/MsmqExtensionTests/MsmqInstall/product.wxs17
-rw-r--r--src/test/msi/WixToolsetTest.MsiE2E/MsmqExtensionTests.cs27
3 files changed, 57 insertions, 0 deletions
diff --git a/src/test/msi/TestData/MsmqExtensionTests/MsmqInstall/MsmqInstall.wixproj b/src/test/msi/TestData/MsmqExtensionTests/MsmqInstall/MsmqInstall.wixproj
new file mode 100644
index 00000000..41e39944
--- /dev/null
+++ b/src/test/msi/TestData/MsmqExtensionTests/MsmqInstall/MsmqInstall.wixproj
@@ -0,0 +1,13 @@
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<Project Sdk="WixToolset.Sdk">
3 <PropertyGroup>
4 <UpgradeCode>{A75B81F4-3335-4B4D-B766-303E136ED374}</UpgradeCode>
5 <ProductComponentsRef>true</ProductComponentsRef>
6 </PropertyGroup>
7 <ItemGroup>
8 <Compile Include="..\..\Templates\Product.wxs" Link="Product.wxs" />
9 </ItemGroup>
10 <ItemGroup>
11 <PackageReference Include="WixToolset.Msmq.wixext" />
12 </ItemGroup>
13</Project>
diff --git a/src/test/msi/TestData/MsmqExtensionTests/MsmqInstall/product.wxs b/src/test/msi/TestData/MsmqExtensionTests/MsmqInstall/product.wxs
new file mode 100644
index 00000000..241b6aed
--- /dev/null
+++ b/src/test/msi/TestData/MsmqExtensionTests/MsmqInstall/product.wxs
@@ -0,0 +1,17 @@
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
4<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:msmq="http://wixtoolset.org/schemas/v4/wxs/msmq">
5 <Fragment>
6 <ComponentGroup Id="ProductComponents">
7 <ComponentRef Id="Component1" />
8 </ComponentGroup>
9 </Fragment>
10
11 <Fragment>
12 <Component Id="Component1">
13 <File Source="$(sys.SOURCEFILEPATH)" KeyPath="yes" />
14 <msmq:MessageQueue Id="ExampleQueue" PathName=".\private$\example-queue" Label="Example Queue" Transactional="yes" />
15 </Component>
16 </Fragment>
17</Wix>
diff --git a/src/test/msi/WixToolsetTest.MsiE2E/MsmqExtensionTests.cs b/src/test/msi/WixToolsetTest.MsiE2E/MsmqExtensionTests.cs
new file mode 100644
index 00000000..41eb8201
--- /dev/null
+++ b/src/test/msi/WixToolsetTest.MsiE2E/MsmqExtensionTests.cs
@@ -0,0 +1,27 @@
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
3namespace WixToolsetTest.MsiE2E
4{
5 using System;
6 using System.Collections.Generic;
7 using System.Linq;
8 using System.Text;
9 using System.Threading.Tasks;
10 using WixTestTools;
11 using Xunit.Abstractions;
12
13 public class MsmqExtensionTests : MsiE2ETests
14 {
15 public MsmqExtensionTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
16 {
17 }
18
19 [RuntimePrereqFeatureFact("MSMQ-Container", "MSMQ-Server")]
20 public void CanInstallAndUninstallMsmq()
21 {
22 var product = this.CreatePackageInstaller("MsmqInstall");
23 product.InstallProduct(MSIExec.MSIExecReturnCode.SUCCESS);
24 product.UninstallProduct(MSIExec.MSIExecReturnCode.SUCCESS);
25 }
26 }
27}