aboutsummaryrefslogtreecommitdiff
path: root/src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-07-01 19:35:48 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-07-01 19:38:57 +1000
commit83be85cdfca822028df65558bb3ac7f22d4de228 (patch)
treebe2811994c56d6e610222597517ca04493fc475d /src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs
parent4c2abc241ea8c7816a3eac83a44d186f2b504f73 (diff)
downloadwix-83be85cdfca822028df65558bb3ac7f22d4de228.tar.gz
wix-83be85cdfca822028df65558bb3ac7f22d4de228.tar.bz2
wix-83be85cdfca822028df65558bb3ac7f22d4de228.zip
Add failing test for CustomAction cycle.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs')
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs b/src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs
new file mode 100644
index 00000000..814b5a26
--- /dev/null
+++ b/src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs
@@ -0,0 +1,41 @@
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.CoreIntegration
4{
5 using System.IO;
6 using System.Linq;
7 using WixBuildTools.TestSupport;
8 using WixToolset.Core.TestPackage;
9 using WixToolset.Data;
10 using Xunit;
11
12 public class CustomActionFixture
13 {
14 [Fact(Skip = "Test demonstrates failure")]
15 public void PopulatesCustomActionTable()
16 {
17 var folder = TestData.Get(@"TestData");
18
19 using (var fs = new DisposableFileSystem())
20 {
21 var baseFolder = fs.GetFolder();
22 var intermediateFolder = Path.Combine(baseFolder, "obj");
23 var msiPath = Path.Combine(baseFolder, @"bin\test.msi");
24
25 var result = WixRunner.Execute(new[]
26 {
27 "build",
28 Path.Combine(folder, "CustomAction", "CustomActionCycle.wxs"),
29 Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"),
30 Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"),
31 "-bindpath", Path.Combine(folder, "SingleFile", "data"),
32 "-intermediateFolder", intermediateFolder,
33 "-o", msiPath
34 });
35
36 var warnings = result.Messages.Where(m => m.Level == MessageLevel.Warning).ToArray();
37 Assert.False(result.ExitCode == 0 && warnings.Length == 0);
38 }
39 }
40 }
41}