aboutsummaryrefslogtreecommitdiff
path: root/src/internal/WixBuildTools.TestSupport/SucceededException.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2021-05-11 07:37:18 -0700
committerRob Mensching <rob@firegiant.com>2021-05-11 07:37:18 -0700
commit985b2683b2717c83a27295b36e09b126083238f9 (patch)
tree622804d279e0ac58366dee62888e6a317a2b9d41 /src/internal/WixBuildTools.TestSupport/SucceededException.cs
parent3f583916719eeef598d10a5d4e14ef14f008243b (diff)
parent6a24996a2e831cfe402398af65b31fb1ecd575a9 (diff)
downloadwix-985b2683b2717c83a27295b36e09b126083238f9.tar.gz
wix-985b2683b2717c83a27295b36e09b126083238f9.tar.bz2
wix-985b2683b2717c83a27295b36e09b126083238f9.zip
Merge WixBuildTools
Diffstat (limited to 'src/internal/WixBuildTools.TestSupport/SucceededException.cs')
-rw-r--r--src/internal/WixBuildTools.TestSupport/SucceededException.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/internal/WixBuildTools.TestSupport/SucceededException.cs b/src/internal/WixBuildTools.TestSupport/SucceededException.cs
new file mode 100644
index 00000000..00b31d68
--- /dev/null
+++ b/src/internal/WixBuildTools.TestSupport/SucceededException.cs
@@ -0,0 +1,18 @@
1// 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.
2
3namespace WixBuildTools.TestSupport
4{
5 using System;
6 using Xunit.Sdk;
7
8 public class SucceededException : XunitException
9 {
10 public SucceededException(int hr, string userMessage)
11 : base(String.Format("WixAssert.Succeeded() Failure\r\n" +
12 "HRESULT: 0x{0:X8}\r\n" +
13 "Message: {1}",
14 hr, userMessage))
15 {
16 }
17 }
18}