1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00

Fixed broken last write time test

This commit is contained in:
Mark McDowall 2014-10-17 17:23:41 -07:00
parent aa6b3f70ed
commit 1a26bd9232

View File

@ -228,14 +228,13 @@ public void should_be_able_to_set_permission_from_parrent()
Subject.InheritFolderPermissions(testFile);
}
[Test]
public void should_be_set_last_file_write()
{
var testFile = GetTempFilePath();
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.FileGetLastWrite(testFile).Should().Be(lastWriteTime);