From b9dce2e82df2770902bc09965b9ee1adbb1ee513 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 13 Jan 2013 15:33:17 -0800 Subject: [PATCH] Fixed test --- .../DiskScanProviderTests/CleanUpDropFolderFixture.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NzbDrone.Core.Test/ProviderTests/DiskScanProviderTests/CleanUpDropFolderFixture.cs b/NzbDrone.Core.Test/ProviderTests/DiskScanProviderTests/CleanUpDropFolderFixture.cs index d0de110cc..ba803c4ed 100644 --- a/NzbDrone.Core.Test/ProviderTests/DiskScanProviderTests/CleanUpDropFolderFixture.cs +++ b/NzbDrone.Core.Test/ProviderTests/DiskScanProviderTests/CleanUpDropFolderFixture.cs @@ -111,6 +111,10 @@ public void should_move_file_if_a_conflict_is_found() Mocker.GetMock().Setup(s => s.CalculateFilePath(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())) .Returns(new FileInfo(newFilePath)); + Mocker.GetMock() + .Setup(s => s.FileExists(filename)) + .Returns(true); + Mocker.GetMock().Setup(s => s.MoveFile(episodeFile.Path, newFilePath)); //Act