1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-02-27 00:02:25 +00:00

Fixed: Test case for unavailable download client

This commit is contained in:
Qstick 2017-10-29 00:45:27 -04:00
parent 2fc58115a0
commit 3f420ff6bd

View file

@ -182,12 +182,10 @@ public void Download_report_should_not_trigger_indexer_backoff_on_downloadclient
[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<RemoteAlbum>()), Times.Never());
VerifyEventNotPublished<AlbumGrabbedEvent>();
ExceptionVerification.ExpectedWarns(1);
}
[Test]