mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 02:07:41 +00:00
Fixed broken test
This commit is contained in:
parent
651a63edea
commit
5bb3b339a6
1 changed files with 6 additions and 2 deletions
|
@ -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<HttpProvider>().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<DiskProvider>().Setup(
|
||||
c => c.ExtractArchive(Path.Combine(TempFolder, UpdateProvider.SandboxFolderName, updatePackage.FileName),
|
||||
Path.Combine(TempFolder, UpdateProvider.SandboxFolderName)));
|
||||
|
||||
_mocker.Resolve<UpdateProvider>().PreformUpdate(updatePackage);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue