From 031991f32f059b64374e6d257cbe573304dd577f Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Fri, 13 May 2022 11:40:45 -0500 Subject: Add ability to skip tests at runtime, and skip long running cache tests 6665 --- .../XunitExtensions/SucceededException.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/internal/WixBuildTools.TestSupport/XunitExtensions/SucceededException.cs (limited to 'src/internal/WixBuildTools.TestSupport/XunitExtensions/SucceededException.cs') diff --git a/src/internal/WixBuildTools.TestSupport/XunitExtensions/SucceededException.cs b/src/internal/WixBuildTools.TestSupport/XunitExtensions/SucceededException.cs new file mode 100644 index 00000000..704fba28 --- /dev/null +++ b/src/internal/WixBuildTools.TestSupport/XunitExtensions/SucceededException.cs @@ -0,0 +1,19 @@ +// 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. + +namespace WixBuildTools.TestSupport +{ + using System; + using Xunit.Sdk; + + public class SucceededException : XunitException + { + public SucceededException(int hr, string userMessage) + : base(String.Format("WixAssert.Succeeded() Failure\r\n" + + "HRESULT: 0x{0:X8}\r\n" + + "Message: {1}", + hr, userMessage)) + { + this.HResult = hr; + } + } +} -- cgit v1.2.3-55-g6feb