diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-05-01 20:44:43 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-05-04 11:33:47 -0500 |
commit | 70f6c04122db39b5d234715c373d690f97892f8b (patch) | |
tree | b5db48faa12017b9c807fb616aba8926fb7e7d9b /src/WixToolsetTest.BurnE2E/TestBAController.cs | |
parent | 0ef54303db8ce523908af744ffc318128405bebd (diff) | |
download | wix-70f6c04122db39b5d234715c373d690f97892f8b.tar.gz wix-70f6c04122db39b5d234715c373d690f97892f8b.tar.bz2 wix-70f6c04122db39b5d234715c373d690f97892f8b.zip |
Add x64 Bundle tests.
Diffstat (limited to '')
-rw-r--r-- | src/WixToolsetTest.BurnE2E/TestBAController.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/WixToolsetTest.BurnE2E/TestBAController.cs b/src/WixToolsetTest.BurnE2E/TestBAController.cs index 103b603b..6e4fe6c6 100644 --- a/src/WixToolsetTest.BurnE2E/TestBAController.cs +++ b/src/WixToolsetTest.BurnE2E/TestBAController.cs | |||
@@ -9,14 +9,15 @@ namespace WixToolsetTest.BurnE2E | |||
9 | 9 | ||
10 | public class TestBAController : IDisposable | 10 | public class TestBAController : IDisposable |
11 | { | 11 | { |
12 | private const string BaseRegKeyPath = @"Software\WOW6432Node\WiX\Tests"; | 12 | public TestBAController(WixTestContext testContext, bool x64 = false) |
13 | |||
14 | public TestBAController(WixTestContext testContext) | ||
15 | { | 13 | { |
16 | this.TestGroupName = testContext.TestGroupName; | 14 | this.TestGroupName = testContext.TestGroupName; |
17 | this.TestBaseRegKeyPath = String.Format(@"{0}\TestBAControl\{1}", BaseRegKeyPath, this.TestGroupName); | 15 | this.BaseRegKeyPath = x64 ? @"Software\WiX\Tests" : @"Software\WOW6432Node\WiX\Tests"; |
16 | this.TestBaseRegKeyPath = String.Format(@"{0}\TestBAControl\{1}", this.BaseRegKeyPath, this.TestGroupName); | ||
18 | } | 17 | } |
19 | 18 | ||
19 | private string BaseRegKeyPath { get; } | ||
20 | |||
20 | private string TestBaseRegKeyPath { get; } | 21 | private string TestBaseRegKeyPath { get; } |
21 | 22 | ||
22 | public string TestGroupName { get; } | 23 | public string TestGroupName { get; } |
@@ -179,8 +180,8 @@ namespace WixToolsetTest.BurnE2E | |||
179 | 180 | ||
180 | public void Dispose() | 181 | public void Dispose() |
181 | { | 182 | { |
182 | Registry.LocalMachine.DeleteSubKeyTree($@"{BaseRegKeyPath}\{this.TestGroupName}", false); | 183 | Registry.LocalMachine.DeleteSubKeyTree($@"{this.BaseRegKeyPath}\{this.TestGroupName}", false); |
183 | Registry.LocalMachine.DeleteSubKeyTree($@"{BaseRegKeyPath}\TestBAControl", false); | 184 | Registry.LocalMachine.DeleteSubKeyTree($@"{this.BaseRegKeyPath}\TestBAControl", false); |
184 | } | 185 | } |
185 | } | 186 | } |
186 | } | 187 | } |