blob: 4e43062af0bb64ee36d54cee29307a2ca26c3f95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// 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.
namespace WixTestTools
{
using Xunit;
public partial class ArpEntryInstaller
{
public bool TryGetRegistration(out GenericArpRegistration registration)
{
var success = this.PerMachine
? GenericArpRegistration.TryGetPerMachineRegistrationById(this.ArpId, this.X64, this.TestContext.TestOutputHelper, out registration)
: GenericArpRegistration.TryGetPerUserRegistrationById(this.ArpId, this.TestContext.TestOutputHelper, out registration);
return success;
}
public void VerifyRegistered(bool registered)
{
var success = this.TryGetRegistration(out _);
if (registered)
{
Assert.True(success);
}
else
{
Assert.False(success);
}
}
}
}
|