diff options
Diffstat (limited to 'src/test/burn/WixTestTools/ArpEntryVerifier.cs')
| -rw-r--r-- | src/test/burn/WixTestTools/ArpEntryVerifier.cs | 16 |
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 | } |
