From 5bb3b339a60ab564baaa0f6fa531459a1c716010 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Thu, 20 Oct 2011 23:58:23 -0700 Subject: [PATCH] Fixed broken test --- .../UpdateProviderTests/PreformUpdateFixture.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Core.Test/ProviderTests/UpdateProviderTests/PreformUpdateFixture.cs b/NzbDrone.Core.Test/ProviderTests/UpdateProviderTests/PreformUpdateFixture.cs index e25b9ae68..3ef354107 100644 --- a/NzbDrone.Core.Test/ProviderTests/UpdateProviderTests/PreformUpdateFixture.cs +++ b/NzbDrone.Core.Test/ProviderTests/UpdateProviderTests/PreformUpdateFixture.cs @@ -26,7 +26,7 @@ namespace NzbDrone.Core.Test.ProviderTests.UpdateProviderTests [Test] - public void Should_call_download_file_using_correct_arguments() + public void Should_call_download_and_extract_using_correct_arguments() { //Act var updatePackage = new UpdatePackage @@ -37,7 +37,11 @@ namespace NzbDrone.Core.Test.ProviderTests.UpdateProviderTests }; _mocker.GetMock().Setup( - c => c.DownloadFile(updatePackage.Url, Path.Combine(TempFolder, updatePackage.FileName))); + c => c.DownloadFile(updatePackage.Url, Path.Combine(TempFolder, UpdateProvider.SandboxFolderName ,updatePackage.FileName))); + + _mocker.GetMock().Setup( + c => c.ExtractArchive(Path.Combine(TempFolder, UpdateProvider.SandboxFolderName, updatePackage.FileName), + Path.Combine(TempFolder, UpdateProvider.SandboxFolderName))); _mocker.Resolve().PreformUpdate(updatePackage); }