diff options
Diffstat (limited to 'src/test/BurnUnitTest/BurnUnitTest.h')
-rw-r--r-- | src/test/BurnUnitTest/BurnUnitTest.h | 41 |
1 files changed, 17 insertions, 24 deletions
diff --git a/src/test/BurnUnitTest/BurnUnitTest.h b/src/test/BurnUnitTest/BurnUnitTest.h index a4ca2707..ed1d2956 100644 --- a/src/test/BurnUnitTest/BurnUnitTest.h +++ b/src/test/BurnUnitTest/BurnUnitTest.h | |||
@@ -13,40 +13,33 @@ namespace Test | |||
13 | namespace Bootstrapper | 13 | namespace Bootstrapper |
14 | { | 14 | { |
15 | using namespace System; | 15 | using namespace System; |
16 | using namespace WixTest; | ||
17 | using namespace Xunit; | 16 | using namespace Xunit; |
18 | 17 | ||
19 | public ref class BurnUnitTest : WixTestBase, IUseFixture<BurnTestFixture^> | 18 | [CollectionDefinition("Burn")] |
19 | public ref class BurnCollectionDefinition : ICollectionFixture<BurnTestFixture^> | ||
20 | { | 20 | { |
21 | public: | ||
22 | BurnUnitTest() | ||
23 | { | ||
24 | } | ||
25 | |||
26 | virtual void TestInitialize() override | ||
27 | { | ||
28 | WixTestBase::TestInitialize(); | ||
29 | |||
30 | HRESULT hr = S_OK; | ||
31 | 21 | ||
32 | LogInitialize(::GetModuleHandleW(NULL)); | 22 | }; |
33 | 23 | ||
34 | hr = LogOpen(NULL, L"BurnUnitTest", NULL, L"txt", FALSE, FALSE, NULL); | 24 | [Collection("Burn")] |
35 | TestThrowOnFailure(hr, L"Failed to open log."); | 25 | public ref class BurnUnitTest |
36 | } | 26 | { |
37 | 27 | public: | |
38 | virtual void TestUninitialize() override | 28 | BurnUnitTest(BurnTestFixture^ fixture) |
39 | { | 29 | { |
40 | LogUninitialize(FALSE); | 30 | this->testContext = fixture; |
41 | |||
42 | WixTestBase::TestUninitialize(); | ||
43 | } | 31 | } |
44 | 32 | ||
45 | virtual void SetFixture(BurnTestFixture^ fixture) | 33 | property BurnTestFixture^ TestContext |
46 | { | 34 | { |
47 | // Don't care about the fixture, just need it to be created and disposed. | 35 | BurnTestFixture^ get() |
48 | UNREFERENCED_PARAMETER(fixture); | 36 | { |
37 | return this->testContext; | ||
38 | } | ||
49 | } | 39 | } |
40 | |||
41 | private: | ||
42 | BurnTestFixture^ testContext; | ||
50 | }; | 43 | }; |
51 | } | 44 | } |
52 | } | 45 | } |