From 7e61f48f6be0849cb0c0da796ec77603c14532e5 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Mon, 28 Feb 2022 18:38:46 -0600 Subject: Factor out TestRegistryFixture so other tests can mock regutil API's. --- src/burn/test/BurnUnitTest/TestRegistryFixture.h | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/burn/test/BurnUnitTest/TestRegistryFixture.h (limited to 'src/burn/test/BurnUnitTest/TestRegistryFixture.h') diff --git a/src/burn/test/BurnUnitTest/TestRegistryFixture.h b/src/burn/test/BurnUnitTest/TestRegistryFixture.h new file mode 100644 index 00000000..283efe42 --- /dev/null +++ b/src/burn/test/BurnUnitTest/TestRegistryFixture.h @@ -0,0 +1,30 @@ +#pragma once +// 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 +{ +namespace TestSupport +{ + using namespace System; + + public ref class TestRegistryFixture : IDisposable + { + private: + String^ rootPath; + String^ hkcuPath; + String^ hklmPath; + public: + TestRegistryFixture(); + + ~TestRegistryFixture(); + + void SetUp(); + + void TearDown(); + + String^ GetDirectHkcuPath(... array^ paths); + + String^ GetDirectHklmPath(... array^ paths); + }; +} +} -- cgit v1.2.3-55-g6feb