aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.TestPackage/WixRunnerResult.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core.TestPackage/WixRunnerResult.cs')
-rw-r--r--src/WixToolset.Core.TestPackage/WixRunnerResult.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/WixToolset.Core.TestPackage/WixRunnerResult.cs b/src/WixToolset.Core.TestPackage/WixRunnerResult.cs
index 88f20158..13e3a9e0 100644
--- a/src/WixToolset.Core.TestPackage/WixRunnerResult.cs
+++ b/src/WixToolset.Core.TestPackage/WixRunnerResult.cs
@@ -7,12 +7,25 @@ namespace WixToolset.Core.TestPackage
7 using WixToolset.Data; 7 using WixToolset.Data;
8 using Xunit; 8 using Xunit;
9 9
10 /// <summary>
11 /// The result of an Execute method of <see cref="WixRunner"/>.
12 /// </summary>
10 public class WixRunnerResult 13 public class WixRunnerResult
11 { 14 {
15 /// <summary>
16 /// ExitCode for the operation.
17 /// </summary>
12 public int ExitCode { get; set; } 18 public int ExitCode { get; set; }
13 19
20 /// <summary>
21 /// Messages from the operation.
22 /// </summary>
14 public Message[] Messages { get; set; } 23 public Message[] Messages { get; set; }
15 24
25 /// <summary>
26 ///
27 /// </summary>
28 /// <returns></returns>
16 public WixRunnerResult AssertSuccess() 29 public WixRunnerResult AssertSuccess()
17 { 30 {
18 Assert.True(0 == this.ExitCode, $"\r\n\r\nWixRunner failed with exit code: {this.ExitCode}\r\n Output: {String.Join("\r\n ", FormatMessages(this.Messages))}\r\n"); 31 Assert.True(0 == this.ExitCode, $"\r\n\r\nWixRunner failed with exit code: {this.ExitCode}\r\n Output: {String.Join("\r\n ", FormatMessages(this.Messages))}\r\n");