#20549: Test which proves that files have different last write time when installing package.

This commit is contained in:
Daniel Dabrowski
2014-03-11 13:13:53 +01:00
committed by Sebastien Ros
parent 1e2b8a78ec
commit b7de2b702e

View File

@@ -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]