// 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; } } }