aboutsummaryrefslogtreecommitdiff
path: root/src/WixBuildTools.TestSupport/WixAssert.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixBuildTools.TestSupport/WixAssert.cs')
-rw-r--r--src/WixBuildTools.TestSupport/WixAssert.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/WixBuildTools.TestSupport/WixAssert.cs b/src/WixBuildTools.TestSupport/WixAssert.cs
new file mode 100644
index 00000000..4a5c6a97
--- /dev/null
+++ b/src/WixBuildTools.TestSupport/WixAssert.cs
@@ -0,0 +1,18 @@
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 WixBuildTools.TestSupport
4{
5 using System;
6 using Xunit;
7
8 public class WixAssert : Assert
9 {
10 public static void Succeeded(int hr, string format, params object[] formatArgs)
11 {
12 if (0 > hr)
13 {
14 throw new SucceededException(hr, String.Format(format, formatArgs));
15 }
16 }
17 }
18}