diff options
Diffstat (limited to 'src/WixToolsetTest.BurnE2E/RegistrationTests.cs')
-rw-r--r-- | src/WixToolsetTest.BurnE2E/RegistrationTests.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/WixToolsetTest.BurnE2E/RegistrationTests.cs b/src/WixToolsetTest.BurnE2E/RegistrationTests.cs index 640b5085..51122c28 100644 --- a/src/WixToolsetTest.BurnE2E/RegistrationTests.cs +++ b/src/WixToolsetTest.BurnE2E/RegistrationTests.cs | |||
@@ -11,6 +11,21 @@ namespace WixToolsetTest.BurnE2E | |||
11 | public RegistrationTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } | 11 | public RegistrationTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } |
12 | 12 | ||
13 | [Fact] | 13 | [Fact] |
14 | public void AutomaticallyUncachesBundleWhenNotInstalled() | ||
15 | { | ||
16 | var bundleA = this.CreateBundleInstaller("BundleA"); | ||
17 | var testBAController = this.CreateTestBAController(); | ||
18 | |||
19 | var cachedBundlePath = bundleA.ManuallyCache(); | ||
20 | |||
21 | testBAController.SetQuitAfterDetect(); | ||
22 | |||
23 | bundleA.Install(cachedBundlePath); | ||
24 | |||
25 | bundleA.VerifyUnregisteredAndRemovedFromPackageCache(); | ||
26 | } | ||
27 | |||
28 | [Fact] | ||
14 | public void AutomaticallyUninstallsBundleWithoutBADoingApply() | 29 | public void AutomaticallyUninstallsBundleWithoutBADoingApply() |
15 | { | 30 | { |
16 | this.InstallBundleThenManuallyUninstallPackageAndRemovePackageFromCacheThenRunAndQuitWithoutApply(true); | 31 | this.InstallBundleThenManuallyUninstallPackageAndRemovePackageFromCacheThenRunAndQuitWithoutApply(true); |
@@ -22,6 +37,18 @@ namespace WixToolsetTest.BurnE2E | |||
22 | this.InstallBundleThenManuallyUninstallPackageAndRemovePackageFromCacheThenRunAndQuitWithoutApply(false); | 37 | this.InstallBundleThenManuallyUninstallPackageAndRemovePackageFromCacheThenRunAndQuitWithoutApply(false); |
23 | } | 38 | } |
24 | 39 | ||
40 | [Fact] | ||
41 | public void RegistersInARPIfPrecached() | ||
42 | { | ||
43 | var bundleA = this.CreateBundleInstaller("BundleA"); | ||
44 | |||
45 | bundleA.ManuallyCache(); | ||
46 | |||
47 | // Verifies https://github.com/wixtoolset/issues/issues/5702 | ||
48 | bundleA.Install(); | ||
49 | bundleA.VerifyRegisteredAndInPackageCache(); | ||
50 | } | ||
51 | |||
25 | private void InstallBundleThenManuallyUninstallPackageAndRemovePackageFromCacheThenRunAndQuitWithoutApply(bool detect) | 52 | private void InstallBundleThenManuallyUninstallPackageAndRemovePackageFromCacheThenRunAndQuitWithoutApply(bool detect) |
26 | { | 53 | { |
27 | var packageA = this.CreatePackageInstaller("PackageA"); | 54 | var packageA = this.CreatePackageInstaller("PackageA"); |