|
|
@ -228,14 +228,13 @@ namespace NzbDrone.Common.Test.DiskProviderTests
|
|
|
|
Subject.InheritFolderPermissions(testFile);
|
|
|
|
Subject.InheritFolderPermissions(testFile);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void should_be_set_last_file_write()
|
|
|
|
public void should_be_set_last_file_write()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var testFile = GetTempFilePath();
|
|
|
|
var testFile = GetTempFilePath();
|
|
|
|
Subject.WriteAllText(testFile, new Guid().ToString());
|
|
|
|
Subject.WriteAllText(testFile, new Guid().ToString());
|
|
|
|
|
|
|
|
|
|
|
|
var lastWriteTime = new DateTime(2012, 1, 2);
|
|
|
|
var lastWriteTime = DateTime.SpecifyKind(new DateTime(2012, 1, 2), DateTimeKind.Utc);
|
|
|
|
|
|
|
|
|
|
|
|
Subject.FileSetLastWriteTime(testFile, lastWriteTime);
|
|
|
|
Subject.FileSetLastWriteTime(testFile, lastWriteTime);
|
|
|
|
Subject.FileGetLastWrite(testFile).Should().Be(lastWriteTime);
|
|
|
|
Subject.FileGetLastWrite(testFile).Should().Be(lastWriteTime);
|
|
|
|