From b7de2b702eb9704d2c347e8e507f6347b37b93a2 Mon Sep 17 00:00:00 2001 From: Daniel Dabrowski Date: Tue, 11 Mar 2014 13:13:53 +0100 Subject: [PATCH] #20549: Test which proves that files have different last write time when installing package. --- .../Packaging/Services/PackageInstallerTests.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Orchard.Tests.Modules/Packaging/Services/PackageInstallerTests.cs b/src/Orchard.Tests.Modules/Packaging/Services/PackageInstallerTests.cs index 9285d92d3..4bac6f800 100644 --- a/src/Orchard.Tests.Modules/Packaging/Services/PackageInstallerTests.cs +++ b/src/Orchard.Tests.Modules/Packaging/Services/PackageInstallerTests.cs @@ -97,7 +97,11 @@ namespace Orchard.Tests.Modules.Packaging.Services { PackageInfo packageInfo = packageInstaller.Install(zipPackage, _basePath, _basePath); Assert.That(packageInfo, Is.Not.Null); Assert.That(Directory.Exists(Path.Combine(_basePath, "Modules/Hello.World"))); - Assert.That(File.Exists(Path.Combine(_basePath, "Modules/Hello.World/Hello.World.csproj"))); + var fileOnePath = Path.Combine(_basePath, "Modules/Hello.World/Hello.World.csproj"); + var fileTwoPath = Path.Combine(_basePath, "Modules/Hello.World/Service References/SomeReference.cs"); + Assert.That(File.Exists(fileOnePath)); + Assert.That(File.Exists(fileTwoPath)); + Assert.That(File.GetLastWriteTime(fileOnePath), Is.EqualTo(File.GetLastWriteTime(fileTwoPath)), "Installed files should have the same last write time."); } [Test]