mirror of
https://github.com/Sonarr/Sonarr
synced 2025-02-12 09:26:49 +00:00
Updated tests to reflect using Copy instead of Move.
This commit is contained in:
parent
a91c7bbff4
commit
50ee3f8d4d
1 changed files with 4 additions and 4 deletions
|
@ -141,7 +141,7 @@ namespace NzbDrone.Update.Test
|
|||
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 @@ namespace NzbDrone.Update.Test
|
|||
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 @@ namespace NzbDrone.Update.Test
|
|||
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 @@ namespace NzbDrone.Update.Test
|
|||
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 a new issue