diff options
| author | Rob Mensching <rob@firegiant.com> | 2022-12-21 23:06:05 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2022-12-22 15:12:23 -0800 |
| commit | 8aafcc72550d89cc43dfcb81012abe8576709660 (patch) | |
| tree | f4417f9691b3df02ecd2ed237bbb60db91b14974 /src/test/burn/WixToolsetTest.BurnE2E | |
| parent | 34692d57dcc693ec017dda1711f25adbc7759a1c (diff) | |
| download | wix-8aafcc72550d89cc43dfcb81012abe8576709660.tar.gz wix-8aafcc72550d89cc43dfcb81012abe8576709660.tar.bz2 wix-8aafcc72550d89cc43dfcb81012abe8576709660.zip | |
Register the InstallDate in Burn
Closes 7068
Diffstat (limited to 'src/test/burn/WixToolsetTest.BurnE2E')
| -rw-r--r-- | src/test/burn/WixToolsetTest.BurnE2E/RegistrationTests.cs | 7 |
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] |
