mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-19 07:52:33 +02:00
Updated tests to reflect using Copy instead of Move.
This commit is contained in:
parent
a91c7bbff4
commit
50ee3f8d4d
@ -141,7 +141,7 @@ public void should_create_backup_of_current_installation()
|
||||
public void should_copy_update_package_to_target()
|
||||
{
|
||||
Mocker.GetMock<DiskProvider>()
|
||||
.Setup(c => c.MoveDirectory(UPDATE_FOLDER, TARGET_FOLDER));
|
||||
.Setup(c => c.CopyDirectory(UPDATE_FOLDER, TARGET_FOLDER));
|
||||
|
||||
Mocker.Resolve<UpdateProvider>().Start(TARGET_FOLDER);
|
||||
}
|
||||
@ -150,7 +150,7 @@ public void should_copy_update_package_to_target()
|
||||
public void should_restore_if_update_fails()
|
||||
{
|
||||
Mocker.GetMock<DiskProvider>()
|
||||
.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<DiskProvider>()
|
||||
.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<DiskProvider>()
|
||||
.Setup(c => c.MoveDirectory(UPDATE_FOLDER, TARGET_FOLDER))
|
||||
.Setup(c => c.CopyDirectory(UPDATE_FOLDER, TARGET_FOLDER))
|
||||
.Throws(new IOException());
|
||||
|
||||
//Act
|
||||
|
Loading…
Reference in New Issue
Block a user