From c239e0cc3a28a50c42c63b086ee62e17cf699104 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Mon, 4 Feb 2019 20:06:58 -0600 Subject: Integrate into latest v4. --- .../ComPlusExtensionFixture.cs | 32 ++++++++++++++++++ .../UsingComPlusPartition/Package.en-us.wxl | 11 +++++++ .../TestData/UsingComPlusPartition/Package.wxs | 22 +++++++++++++ .../UsingComPlusPartition/PackageComponents.wxs | 12 +++++++ .../TestData/UsingComPlusPartition/example.txt | 1 + .../WixToolsetTest.ComPlus.csproj | 38 ++++++++++++++++++++++ 6 files changed, 116 insertions(+) create mode 100644 src/test/WixToolsetTest.ComPlus/ComPlusExtensionFixture.cs create mode 100644 src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/Package.en-us.wxl create mode 100644 src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/Package.wxs create mode 100644 src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/PackageComponents.wxs create mode 100644 src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/example.txt create mode 100644 src/test/WixToolsetTest.ComPlus/WixToolsetTest.ComPlus.csproj (limited to 'src/test') diff --git a/src/test/WixToolsetTest.ComPlus/ComPlusExtensionFixture.cs b/src/test/WixToolsetTest.ComPlus/ComPlusExtensionFixture.cs new file mode 100644 index 00000000..4ff3b5f0 --- /dev/null +++ b/src/test/WixToolsetTest.ComPlus/ComPlusExtensionFixture.cs @@ -0,0 +1,32 @@ +// 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.ComPlus +{ + using System.Linq; + using WixBuildTools.TestSupport; + using WixToolset.Core.TestPackage; + using WixToolset.ComPlus; + using Xunit; + + public class ComPlusExtensionFixture + { + [Fact] + public void CanBuildUsingComPlusPartition() + { + var folder = TestData.Get(@"TestData\UsingComPlusPartition"); + var build = new Builder(folder, typeof(ComPlusExtensionFactory), new[] { folder }); + + var results = build.BuildAndQuery(Build, "ComPlusPartition"); + Assert.Equal(new[] + { + "ComPlusPartition:", + }, results.OrderBy(s => s).ToArray()); + } + + private static void Build(string[] args) + { + var result = WixRunner.Execute(args) + .AssertSuccess(); + } + } +} diff --git a/src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/Package.en-us.wxl b/src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/Package.en-us.wxl new file mode 100644 index 00000000..38c12ac1 --- /dev/null +++ b/src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/Package.en-us.wxl @@ -0,0 +1,11 @@ + + + + + + A newer version of [ProductName] is already installed. + MsiPackage + + diff --git a/src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/Package.wxs b/src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/Package.wxs new file mode 100644 index 00000000..68ff98fd --- /dev/null +++ b/src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/Package.wxs @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/PackageComponents.wxs b/src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/PackageComponents.wxs new file mode 100644 index 00000000..f61eedd6 --- /dev/null +++ b/src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/PackageComponents.wxs @@ -0,0 +1,12 @@ + + + + + + + + + + + diff --git a/src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/example.txt b/src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/example.txt new file mode 100644 index 00000000..1b4ffe8a --- /dev/null +++ b/src/test/WixToolsetTest.ComPlus/TestData/UsingComPlusPartition/example.txt @@ -0,0 +1 @@ +This is example.txt. \ No newline at end of file diff --git a/src/test/WixToolsetTest.ComPlus/WixToolsetTest.ComPlus.csproj b/src/test/WixToolsetTest.ComPlus/WixToolsetTest.ComPlus.csproj new file mode 100644 index 00000000..801f5ca2 --- /dev/null +++ b/src/test/WixToolsetTest.ComPlus/WixToolsetTest.ComPlus.csproj @@ -0,0 +1,38 @@ + + + + + + netcoreapp2.1 + false + + + + NU1701 + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3-55-g6feb