aboutsummaryrefslogtreecommitdiff
path: root/src/test/burn/WixTestTools/ArpEntryVerifier.cs
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2026-02-04 20:47:04 -0500
committerBob Arnson <bob@firegiant.com>2026-02-04 20:47:04 -0500
commitedccb203c421d2bd820062024088c6698424d9ee (patch)
tree6b47c3eb5ca53bd9f79f3d032dc1a596d411bf38 /src/test/burn/WixTestTools/ArpEntryVerifier.cs
parenta3d3963f806117ce123d95e8b77e73e1c1545b25 (diff)
downloadwix-bob/ConfigurableScopeBundles.tar.gz
wix-bob/ConfigurableScopeBundles.tar.bz2
wix-bob/ConfigurableScopeBundles.zip
Support dual-purpose packages in Burn.bob/ConfigurableScopeBundles
Fixes https://github.com/wixtoolset/issues/issues/8958
Diffstat (limited to 'src/test/burn/WixTestTools/ArpEntryVerifier.cs')
-rw-r--r--src/test/burn/WixTestTools/ArpEntryVerifier.cs16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/test/burn/WixTestTools/ArpEntryVerifier.cs b/src/test/burn/WixTestTools/ArpEntryVerifier.cs
index b3c70337..4e43062a 100644
--- a/src/test/burn/WixTestTools/ArpEntryVerifier.cs
+++ b/src/test/burn/WixTestTools/ArpEntryVerifier.cs
@@ -8,17 +8,25 @@ namespace WixTestTools
8 { 8 {
9 public bool TryGetRegistration(out GenericArpRegistration registration) 9 public bool TryGetRegistration(out GenericArpRegistration registration)
10 { 10 {
11 bool success = !this.PerMachine ? GenericArpRegistration.TryGetPerUserRegistrationById(this.ArpId, out registration) 11 var success = this.PerMachine
12 : GenericArpRegistration.TryGetPerMachineRegistrationById(this.ArpId, this.X64, out registration); 12 ? GenericArpRegistration.TryGetPerMachineRegistrationById(this.ArpId, this.X64, this.TestContext.TestOutputHelper, out registration)
13 : GenericArpRegistration.TryGetPerUserRegistrationById(this.ArpId, this.TestContext.TestOutputHelper, out registration);
13 14
14 return success; 15 return success;
15 } 16 }
16 17
17 public void VerifyRegistered(bool registered) 18 public void VerifyRegistered(bool registered)
18 { 19 {
19 bool success = this.TryGetRegistration(out _); 20 var success = this.TryGetRegistration(out _);
20 21
21 Assert.Equal(registered, success); 22 if (registered)
23 {
24 Assert.True(success);
25 }
26 else
27 {
28 Assert.False(success);
29 }
22 } 30 }
23 } 31 }
24} 32}