diff options
Diffstat (limited to 'src/test/burn/WixTestTools/ArpEntryVerifier.cs')
-rw-r--r-- | src/test/burn/WixTestTools/ArpEntryVerifier.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/burn/WixTestTools/ArpEntryVerifier.cs b/src/test/burn/WixTestTools/ArpEntryVerifier.cs new file mode 100644 index 00000000..b3c70337 --- /dev/null +++ b/src/test/burn/WixTestTools/ArpEntryVerifier.cs | |||
@@ -0,0 +1,24 @@ | |||
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 | } | ||