diff options
Diffstat (limited to '')
| -rw-r--r-- | src/internal/WixBuildTools.TestSupport/XunitExtensions/WixAssert.cs (renamed from src/internal/WixBuildTools.TestSupport/WixAssert.cs) | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/internal/WixBuildTools.TestSupport/WixAssert.cs b/src/internal/WixBuildTools.TestSupport/XunitExtensions/WixAssert.cs index 1db842c3..10156547 100644 --- a/src/internal/WixBuildTools.TestSupport/WixAssert.cs +++ b/src/internal/WixBuildTools.TestSupport/XunitExtensions/WixAssert.cs | |||
| @@ -6,6 +6,7 @@ namespace WixBuildTools.TestSupport | |||
| 6 | using System.Collections.Generic; | 6 | using System.Collections.Generic; |
| 7 | using System.Linq; | 7 | using System.Linq; |
| 8 | using System.Xml.Linq; | 8 | using System.Xml.Linq; |
| 9 | using WixBuildTools.TestSupport.XunitExtensions; | ||
| 9 | using Xunit; | 10 | using Xunit; |
| 10 | 11 | ||
| 11 | public class WixAssert : Assert | 12 | public class WixAssert : Assert |
| @@ -41,6 +42,16 @@ namespace WixBuildTools.TestSupport | |||
| 41 | CompareXml(expectedDoc, actualDoc); | 42 | CompareXml(expectedDoc, actualDoc); |
| 42 | } | 43 | } |
| 43 | 44 | ||
| 45 | /// <summary> | ||
| 46 | /// Dynamically skips the test. | ||
| 47 | /// Requires that the test was marked with a fact attribute derived from <see cref="WixBuildTools.TestSupport.XunitExtensions.SkippableFactAttribute" /> | ||
| 48 | /// or <see cref="WixBuildTools.TestSupport.XunitExtensions.SkippableTheoryAttribute" /> | ||
| 49 | /// </summary> | ||
| 50 | public static void Skip(string message) | ||
| 51 | { | ||
| 52 | throw new SkipTestException(message); | ||
| 53 | } | ||
| 54 | |||
| 44 | public static void Succeeded(int hr, string format, params object[] formatArgs) | 55 | public static void Succeeded(int hr, string format, params object[] formatArgs) |
| 45 | { | 56 | { |
| 46 | if (0 > hr) | 57 | if (0 > hr) |
