| 1 | // 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. |
| 2 | |
| 3 | namespace WixTestTools |
| 4 | { |
| 5 | using Xunit; |
| 6 | |
| 7 | public partial class ArpEntryInstaller |
| 8 | { |
| 9 | public bool TryGetRegistration(out GenericArpRegistration registration) |
| 10 | { |
| 11 | bool success = !this.PerMachine ? GenericArpRegistration.TryGetPerUserRegistrationById(this.ArpId, out registration) |
| 12 | : GenericArpRegistration.TryGetPerMachineRegistrationById(this.ArpId, this.X64, out registration); |
| 13 | |
| 14 | return success; |
| 15 | } |
| 16 | |
| 17 | public void VerifyRegistered(bool registered) |
| 18 | { |
| 19 | bool success = this.TryGetRegistration(out _); |
| 20 | |
| 21 | Assert.Equal(registered, success); |
| 22 | } |
| 23 | } |
| 24 | } |