From d33e2dff5845c91600cc2234e3167dd510bae82b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 22 May 2013 17:29:41 -0700 Subject: [PATCH] fixed some test names, added logging to last write test --- NzbDrone.Common.Test/DiskProviderFixture.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/NzbDrone.Common.Test/DiskProviderFixture.cs b/NzbDrone.Common.Test/DiskProviderFixture.cs index 49842fe57..4342e7922 100644 --- a/NzbDrone.Common.Test/DiskProviderFixture.cs +++ b/NzbDrone.Common.Test/DiskProviderFixture.cs @@ -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); }