|
|
@ -182,12 +182,10 @@ namespace NzbDrone.Core.Test.Download
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void should_not_attempt_download_if_client_isnt_configure()
|
|
|
|
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());
|
|
|
|
Mocker.GetMock<IDownloadClient>().Verify(c => c.Download(It.IsAny<RemoteEpisode>()), Times.Never());
|
|
|
|
VerifyEventNotPublished<EpisodeGrabbedEvent>();
|
|
|
|
VerifyEventNotPublished<EpisodeGrabbedEvent>();
|
|
|
|
|
|
|
|
|
|
|
|
ExceptionVerification.ExpectedWarns(1);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|