summaryrefslogtreecommitdiff
path: root/src/internal/WixBuildTools.TestSupport/SucceededException.cs
blob: 00b31d68f4478c2d16e71ee98a3fcb713b02dc80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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))
        {
        }
    }
}