mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#20549: Test which proves that files have different last write time when installing package.
This commit is contained in:

committed by
Sebastien Ros

parent
1e2b8a78ec
commit
b7de2b702e
@@ -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]
|
||||
|
Reference in New Issue
Block a user