aboutsummaryrefslogtreecommitdiff
path: root/src/test/BurnUnitTest/BurnUnitTest.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/BurnUnitTest/BurnUnitTest.h')
-rw-r--r--src/test/BurnUnitTest/BurnUnitTest.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/test/BurnUnitTest/BurnUnitTest.h b/src/test/BurnUnitTest/BurnUnitTest.h
new file mode 100644
index 00000000..a4ca2707
--- /dev/null
+++ b/src/test/BurnUnitTest/BurnUnitTest.h
@@ -0,0 +1,55 @@
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 using namespace WixTest;
17 using namespace Xunit;
18
19 public ref class BurnUnitTest : WixTestBase, IUseFixture<BurnTestFixture^>
20 {
21 public:
22 BurnUnitTest()
23 {
24 }
25
26 virtual void TestInitialize() override
27 {
28 WixTestBase::TestInitialize();
29
30 HRESULT hr = S_OK;
31
32 LogInitialize(::GetModuleHandleW(NULL));
33
34 hr = LogOpen(NULL, L"BurnUnitTest", NULL, L"txt", FALSE, FALSE, NULL);
35 TestThrowOnFailure(hr, L"Failed to open log.");
36 }
37
38 virtual void TestUninitialize() override
39 {
40 LogUninitialize(FALSE);
41
42 WixTestBase::TestUninitialize();
43 }
44
45 virtual void SetFixture(BurnTestFixture^ fixture)
46 {
47 // Don't care about the fixture, just need it to be created and disposed.
48 UNREFERENCED_PARAMETER(fixture);
49 }
50 };
51}
52}
53}
54}
55}