aboutsummaryrefslogtreecommitdiff
path: root/src/test/burn/WixToolsetTest.BurnE2E/RegistrationTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/burn/WixToolsetTest.BurnE2E/RegistrationTests.cs')
-rw-r--r--src/test/burn/WixToolsetTest.BurnE2E/RegistrationTests.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/burn/WixToolsetTest.BurnE2E/RegistrationTests.cs b/src/test/burn/WixToolsetTest.BurnE2E/RegistrationTests.cs
index b45ec83a..d9eb36ba 100644
--- a/src/test/burn/WixToolsetTest.BurnE2E/RegistrationTests.cs
+++ b/src/test/burn/WixToolsetTest.BurnE2E/RegistrationTests.cs
@@ -25,7 +25,12 @@ namespace WixToolsetTest.BurnE2E
25 bundleA.Install(); 25 bundleA.Install();
26 var initialRegistration = bundleA.VerifyRegisteredAndInPackageCache(); 26 var initialRegistration = bundleA.VerifyRegisteredAndInPackageCache();
27 27
28 var now = DateTime.Now;
29 var today = now.ToString("yyyyMMdd");
30 var yesterday = now.AddDays(-1).ToString("yyyyMMdd"); // check yesterday in case the bundle install crossed the midnight hour.
31
28 Assert.NotNull(initialRegistration.EstimatedSize); 32 Assert.NotNull(initialRegistration.EstimatedSize);
33 Assert.True(initialRegistration.InstallDate == today || initialRegistration.InstallDate == yesterday, $"Installed date should have been {today} or {yesterday}");
29 34
30 testBAController.SetForceKeepRegistration(null); 35 testBAController.SetForceKeepRegistration(null);
31 testBAController.ResetPackageStates("PackageA"); 36 testBAController.ResetPackageStates("PackageA");
@@ -36,6 +41,8 @@ namespace WixToolsetTest.BurnE2E
36 // Verifies https://github.com/wixtoolset/issues/issues/4039 41 // Verifies https://github.com/wixtoolset/issues/issues/4039
37 Assert.NotNull(finalRegistration.EstimatedSize); 42 Assert.NotNull(finalRegistration.EstimatedSize);
38 Assert.InRange(finalRegistration.EstimatedSize.Value, initialRegistration.EstimatedSize.Value + 1, Int32.MaxValue); 43 Assert.InRange(finalRegistration.EstimatedSize.Value, initialRegistration.EstimatedSize.Value + 1, Int32.MaxValue);
44
45 Assert.Equal(initialRegistration.InstallDate, finalRegistration.InstallDate);
39 } 46 }
40 47
41 [RuntimeFact] 48 [RuntimeFact]