diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-06-09 15:30:48 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-06-13 09:28:49 -0500 |
commit | 6f6e4ced9f398ff37a44b91fdba62479cde29d06 (patch) | |
tree | 8cef5b123df7ff11cdc9be79d2e981d9d567d65d /src/test/burn/WixTestTools/ArpEntryVerifier.cs | |
parent | 68ec803fc7f48bb0e0463dc45f6ce40e1f07dbf5 (diff) | |
download | wix-6f6e4ced9f398ff37a44b91fdba62479cde29d06.tar.gz wix-6f6e4ced9f398ff37a44b91fdba62479cde29d06.tar.bz2 wix-6f6e4ced9f398ff37a44b91fdba62479cde29d06.zip |
Implement ArpEntry flavored ExePackage.
6772
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 | } | ||