aboutsummaryrefslogtreecommitdiff
path: root/src/test/BurnUnitTest/BurnTestFixture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/BurnUnitTest/BurnTestFixture.h')
-rw-r--r--src/test/BurnUnitTest/BurnTestFixture.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/test/BurnUnitTest/BurnTestFixture.h b/src/test/BurnUnitTest/BurnTestFixture.h
new file mode 100644
index 00000000..b89fe6fa
--- /dev/null
+++ b/src/test/BurnUnitTest/BurnTestFixture.h
@@ -0,0 +1,41 @@
1#pragma once
2// 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.
3
4
5namespace Microsoft
6{
7namespace Tools
8{
9namespace WindowsInstallerXml
10{
11namespace Test
12{
13namespace Bootstrapper
14{
15 using namespace System;
16
17 public ref class BurnTestFixture
18 {
19 public:
20 BurnTestFixture()
21 {
22 HRESULT hr = XmlInitialize();
23 TestThrowOnFailure(hr, L"Failed to initialize XML support.");
24
25 hr = RegInitialize();
26 TestThrowOnFailure(hr, L"Failed to initialize Regutil.");
27
28 PlatformInitialize();
29 }
30
31 ~BurnTestFixture()
32 {
33 XmlUninitialize();
34 RegUninitialize();
35 }
36 };
37}
38}
39}
40}
41}