From fb4f8c7108f43d2341ba299424646c4963b21188 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Thu, 26 May 2022 17:33:15 -0500 Subject: Replace PathIsAbsolute with PathIsRooted and add PathIsFullyQualified. --- .../WixBuildTools.TestSupport/XunitExtensions/WixAssert.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/internal/WixBuildTools.TestSupport/XunitExtensions/WixAssert.cs') 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 throw new SkipTestException(message); } + public static void SpecificReturnCode(int hrExpected, int hr, string format, params object[] formatArgs) + { + if (hrExpected != hr) + { + throw new SpecificReturnCodeException(hr, String.Format(format, formatArgs)); + } + } + public static void Succeeded(int hr, string format, params object[] formatArgs) { if (0 > hr) -- cgit v1.2.3-55-g6feb