mirror of
https://github.com/Sonarr/Sonarr
synced 2025-01-02 13:14:58 +00:00
Fixed test case for unavailable download client.
This commit is contained in:
parent
2d1d1c8a99
commit
9471343533
1 changed files with 5 additions and 7 deletions
|
@ -182,12 +182,10 @@ namespace NzbDrone.Core.Test.Download
|
|||
[Test]
|
||||
public void should_not_attempt_download_if_client_isnt_configure()
|
||||
{
|
||||
Subject.DownloadReport(_parseResult);
|
||||
Assert.Throws<DownloadClientUnavailableException>(() => Subject.DownloadReport(_parseResult));
|
||||
|
||||
Mocker.GetMock<IDownloadClient>().Verify(c => c.Download(It.IsAny<RemoteEpisode>()), Times.Never());
|
||||
VerifyEventNotPublished<EpisodeGrabbedEvent>();
|
||||
|
||||
ExceptionVerification.ExpectedWarns(1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
Loading…
Reference in a new issue