1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-26 01:38:24 +00:00

fixed some test names, added logging to last write test

This commit is contained in:
Mark McDowall 2013-05-22 17:29:41 -07:00
parent 812dd18b3d
commit d33e2dff58

View file

@ -91,7 +91,7 @@ public void CopyFolder_should_copy_folder()
[Test]
public void CopyFolder_should_overright_existing_folder()
public void CopyFolder_should_overwrite_existing_folder()
{
@ -109,7 +109,7 @@ public void CopyFolder_should_overright_existing_folder()
}
[Test]
public void MoveFolder_should_overright_existing_folder()
public void MoveFolder_should_overwrite_existing_folder()
{
@ -137,7 +137,7 @@ public void MoveFolder_should_overright_existing_folder()
[TestCase(@"\\Server\pool", @"\\Server\pool\")]
[TestCase(@"\\Server\pool\", @"\\Server\pool\")]
[TestCase(@"\\smallcheese\DRIVE_G\TV-C\Simspsons", @"\\smallcheese\DRIVE_G\TV-C\Simspsons")]
public void paths_should_be_equeal(string first, string second)
public void paths_should_be_equal(string first, string second)
{
if (first.StartsWith("\\"))
{
@ -150,7 +150,7 @@ public void paths_should_be_equeal(string first, string second)
[TestCase(@"D:\Test", @"C:\Test\")]
[TestCase(@"D:\Test\Test", @"C:\TestTest\")]
public void paths_should_not_be_equeal(string first, string second)
public void paths_should_not_be_equal(string first, string second)
{
DiskProvider.PathEquals(first, second).Should().BeFalse();
}
@ -166,6 +166,8 @@ public void empty_folder_should_return_folder_modified_date()
public void folder_should_return_correct_value_for_last_write()
{
var appPath = new EnvironmentProvider().WorkingDirectory;
TestLogger.Info("Path is: {0}", appPath);
Subject.GetLastFolderWrite(appPath).Should().BeOnOrAfter(DateTime.UtcNow.AddMinutes(-10));
Subject.GetLastFolderWrite(appPath).Should().BeBefore(DateTime.UtcNow);
}