diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-05-26 17:33:15 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-05-31 13:20:44 -0500 |
commit | fb4f8c7108f43d2341ba299424646c4963b21188 (patch) | |
tree | 7f3c907ac5406d2000056f6bcca41d7ae4d3a925 /src/internal/WixBuildTools.TestSupport/XunitExtensions/WixAssert.cs | |
parent | 0f9931107ecf9e1f6714e6fd2cabc76d2ddb1153 (diff) | |
download | wix-fb4f8c7108f43d2341ba299424646c4963b21188.tar.gz wix-fb4f8c7108f43d2341ba299424646c4963b21188.tar.bz2 wix-fb4f8c7108f43d2341ba299424646c4963b21188.zip |
Replace PathIsAbsolute with PathIsRooted and add PathIsFullyQualified.
Diffstat (limited to 'src/internal/WixBuildTools.TestSupport/XunitExtensions/WixAssert.cs')
-rw-r--r-- | src/internal/WixBuildTools.TestSupport/XunitExtensions/WixAssert.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/internal/WixBuildTools.TestSupport/XunitExtensions/WixAssert.cs b/src/internal/WixBuildTools.TestSupport/XunitExtensions/WixAssert.cs index 10156547..1ede55b3 100644 --- a/src/internal/WixBuildTools.TestSupport/XunitExtensions/WixAssert.cs +++ b/src/internal/WixBuildTools.TestSupport/XunitExtensions/WixAssert.cs | |||
@@ -52,6 +52,14 @@ namespace WixBuildTools.TestSupport | |||
52 | throw new SkipTestException(message); | 52 | throw new SkipTestException(message); |
53 | } | 53 | } |
54 | 54 | ||
55 | public static void SpecificReturnCode(int hrExpected, int hr, string format, params object[] formatArgs) | ||
56 | { | ||
57 | if (hrExpected != hr) | ||
58 | { | ||
59 | throw new SpecificReturnCodeException(hr, String.Format(format, formatArgs)); | ||
60 | } | ||
61 | } | ||
62 | |||
55 | public static void Succeeded(int hr, string format, params object[] formatArgs) | 63 | public static void Succeeded(int hr, string format, params object[] formatArgs) |
56 | { | 64 | { |
57 | if (0 > hr) | 65 | if (0 > hr) |