blob: 49be13d5a3684ac8429595c88116ce91766201a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// 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 WixInternal.TestSupport
{
using System;
using Xunit.Sdk;
public class SpecificReturnCodeException : XunitException
{
public SpecificReturnCodeException(int hrExpected, int hr, string userMessage)
: base(String.Format("WixAssert.SpecificReturnCode() Failure\r\n" +
"Expected HRESULT: 0x{0:X8}\r\n" +
"Actual HRESULT: 0x{1:X8}\r\n" +
"Message: {2}",
hrExpected, hr, userMessage))
{
this.HResult = hr;
}
}
}
|