From 50ee3f8d4de2985a456ff00107e52881592955b8 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 21 Nov 2011 16:45:45 -0800 Subject: [PATCH] Updated tests to reflect using Copy instead of Move. --- NzbDrone.Update.Test/UpdateProviderStartFixture.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NzbDrone.Update.Test/UpdateProviderStartFixture.cs b/NzbDrone.Update.Test/UpdateProviderStartFixture.cs index 90a6d69cd..717616a2e 100644 --- a/NzbDrone.Update.Test/UpdateProviderStartFixture.cs +++ b/NzbDrone.Update.Test/UpdateProviderStartFixture.cs @@ -141,7 +141,7 @@ public void should_create_backup_of_current_installation() public void should_copy_update_package_to_target() { Mocker.GetMock() - .Setup(c => c.MoveDirectory(UPDATE_FOLDER, TARGET_FOLDER)); + .Setup(c => c.CopyDirectory(UPDATE_FOLDER, TARGET_FOLDER)); Mocker.Resolve().Start(TARGET_FOLDER); } @@ -150,7 +150,7 @@ public void should_copy_update_package_to_target() public void should_restore_if_update_fails() { Mocker.GetMock() - .Setup(c => c.MoveDirectory(UPDATE_FOLDER, TARGET_FOLDER)) + .Setup(c => c.CopyDirectory(UPDATE_FOLDER, TARGET_FOLDER)) .Throws(new IOException()); //Act @@ -195,7 +195,7 @@ public void should_restart_service_if_service_was_running_and_update_fails() WithServiceRunning(true); Mocker.GetMock() - .Setup(c => c.MoveDirectory(UPDATE_FOLDER, TARGET_FOLDER)) + .Setup(c => c.CopyDirectory(UPDATE_FOLDER, TARGET_FOLDER)) .Throws(new IOException()); //Act @@ -213,7 +213,7 @@ public void should_restart_process_if_service_was_not_running_and_update_fails() WithServiceRunning(false); Mocker.GetMock() - .Setup(c => c.MoveDirectory(UPDATE_FOLDER, TARGET_FOLDER)) + .Setup(c => c.CopyDirectory(UPDATE_FOLDER, TARGET_FOLDER)) .Throws(new IOException()); //Act