aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs b/src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs
index 7980ea61..636b86a6 100644
--- a/src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs
+++ b/src/test/WixToolsetTest.CoreIntegration/CustomActionFixture.cs
@@ -6,7 +6,6 @@ namespace WixToolsetTest.CoreIntegration
6 using System.Linq; 6 using System.Linq;
7 using WixBuildTools.TestSupport; 7 using WixBuildTools.TestSupport;
8 using WixToolset.Core.TestPackage; 8 using WixToolset.Core.TestPackage;
9 using WixToolset.Data;
10 using Xunit; 9 using Xunit;
11 10
12 public class CustomActionFixture 11 public class CustomActionFixture
@@ -22,7 +21,7 @@ namespace WixToolsetTest.CoreIntegration
22 var intermediateFolder = Path.Combine(baseFolder, "obj"); 21 var intermediateFolder = Path.Combine(baseFolder, "obj");
23 var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); 22 var msiPath = Path.Combine(baseFolder, @"bin\test.msi");
24 23
25 var exception = Assert.Throws<WixException>(() => WixRunner.Execute(new[] 24 var result = WixRunner.Execute(new[]
26 { 25 {
27 "build", 26 "build",
28 Path.Combine(folder, "CustomAction", "CustomActionCycle.wxs"), 27 Path.Combine(folder, "CustomAction", "CustomActionCycle.wxs"),
@@ -31,9 +30,10 @@ namespace WixToolsetTest.CoreIntegration
31 "-bindpath", Path.Combine(folder, "SingleFile", "data"), 30 "-bindpath", Path.Combine(folder, "SingleFile", "data"),
32 "-intermediateFolder", intermediateFolder, 31 "-intermediateFolder", intermediateFolder,
33 "-o", msiPath 32 "-o", msiPath
34 })); 33 });
35 34
36 Assert.Equal("The InstallExecuteSequence table contains an action 'Action1' that is scheduled to come before or after action 'Action3', which is also scheduled to come before or after action 'Action1'. Please remove this circular dependency by changing the Before or After attribute for one of the actions.", exception.Message); 35 Assert.Equal(176, result.ExitCode);
36 Assert.Equal("The InstallExecuteSequence table contains an action 'Action1' that is scheduled to come before or after action 'Action3', which is also scheduled to come before or after action 'Action1'. Please remove this circular dependency by changing the Before or After attribute for one of the actions.", result.Messages[0].ToString());
37 } 37 }
38 } 38 }
39 39
@@ -48,7 +48,7 @@ namespace WixToolsetTest.CoreIntegration
48 var intermediateFolder = Path.Combine(baseFolder, "obj"); 48 var intermediateFolder = Path.Combine(baseFolder, "obj");
49 var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); 49 var msiPath = Path.Combine(baseFolder, @"bin\test.msi");
50 50
51 var exception = Assert.Throws<WixException>(() => WixRunner.Execute(new[] 51 var result = WixRunner.Execute(new[]
52 { 52 {
53 "build", 53 "build",
54 Path.Combine(folder, "CustomAction", "CustomActionCycleWithTail.wxs"), 54 Path.Combine(folder, "CustomAction", "CustomActionCycleWithTail.wxs"),
@@ -57,9 +57,10 @@ namespace WixToolsetTest.CoreIntegration
57 "-bindpath", Path.Combine(folder, "SingleFile", "data"), 57 "-bindpath", Path.Combine(folder, "SingleFile", "data"),
58 "-intermediateFolder", intermediateFolder, 58 "-intermediateFolder", intermediateFolder,
59 "-o", msiPath 59 "-o", msiPath
60 })); 60 });
61 61
62 Assert.Equal("The InstallExecuteSequence table contains an action 'Action2' that is scheduled to come before or after action 'Action4', which is also scheduled to come before or after action 'Action2'. Please remove this circular dependency by changing the Before or After attribute for one of the actions.", exception.Message); 62 Assert.Equal(176, result.ExitCode);
63 Assert.Equal("The InstallExecuteSequence table contains an action 'Action2' that is scheduled to come before or after action 'Action4', which is also scheduled to come before or after action 'Action2'. Please remove this circular dependency by changing the Before or After attribute for one of the actions.", result.Messages[0].ToString());
63 } 64 }
64 } 65 }
65 66