mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 09:49:00 +00:00
Fixed broken tests
This commit is contained in:
parent
eddbd4a97b
commit
215c946a67
1 changed files with 6 additions and 6 deletions
|
@ -59,11 +59,11 @@ private EpisodeParseResult SetupParseResult()
|
||||||
private void WithSuccessfullAdd()
|
private void WithSuccessfullAdd()
|
||||||
{
|
{
|
||||||
Mocker.GetMock<SabProvider>()
|
Mocker.GetMock<SabProvider>()
|
||||||
.Setup(s => s.DownloadNzb(It.IsAny<String>(), It.IsAny<String>(), false))
|
.Setup(s => s.DownloadNzb(It.IsAny<String>(), It.IsAny<String>(), It.IsAny<bool>()))
|
||||||
.Returns(true);
|
.Returns(true);
|
||||||
|
|
||||||
Mocker.GetMock<BlackholeProvider>()
|
Mocker.GetMock<BlackholeProvider>()
|
||||||
.Setup(s => s.DownloadNzb(It.IsAny<String>(), It.IsAny<String>(), false))
|
.Setup(s => s.DownloadNzb(It.IsAny<String>(), It.IsAny<String>(), It.IsAny<bool>()))
|
||||||
.Returns(true);
|
.Returns(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,10 +92,10 @@ public void Download_report_should_send_to_sab_add_to_history_mark_as_grabbed()
|
||||||
|
|
||||||
//Assert
|
//Assert
|
||||||
Mocker.GetMock<SabProvider>()
|
Mocker.GetMock<SabProvider>()
|
||||||
.Verify(s => s.DownloadNzb(It.IsAny<String>(), It.IsAny<String>(), false), Times.Once());
|
.Verify(s => s.DownloadNzb(It.IsAny<String>(), It.IsAny<String>(), true), Times.Once());
|
||||||
|
|
||||||
Mocker.GetMock<BlackholeProvider>()
|
Mocker.GetMock<BlackholeProvider>()
|
||||||
.Verify(s => s.DownloadNzb(It.IsAny<String>(), It.IsAny<String>(), false), Times.Never());
|
.Verify(s => s.DownloadNzb(It.IsAny<String>(), It.IsAny<String>(), true), Times.Never());
|
||||||
|
|
||||||
Mocker.GetMock<HistoryProvider>()
|
Mocker.GetMock<HistoryProvider>()
|
||||||
.Verify(s => s.Add(It.Is<History>(h => h.EpisodeId == 12 && h.SeriesId == 5)), Times.Once());
|
.Verify(s => s.Add(It.Is<History>(h => h.EpisodeId == 12 && h.SeriesId == 5)), Times.Once());
|
||||||
|
@ -127,10 +127,10 @@ public void should_download_nzb_to_blackhole_add_to_history_mark_as_grabbed()
|
||||||
|
|
||||||
//Assert
|
//Assert
|
||||||
Mocker.GetMock<SabProvider>()
|
Mocker.GetMock<SabProvider>()
|
||||||
.Verify(s => s.DownloadNzb(It.IsAny<String>(), It.IsAny<String>(), false), Times.Never());
|
.Verify(s => s.DownloadNzb(It.IsAny<String>(), It.IsAny<String>(), true), Times.Never());
|
||||||
|
|
||||||
Mocker.GetMock<BlackholeProvider>()
|
Mocker.GetMock<BlackholeProvider>()
|
||||||
.Verify(s => s.DownloadNzb(It.IsAny<String>(), It.IsAny<String>(), false), Times.Once());
|
.Verify(s => s.DownloadNzb(It.IsAny<String>(), It.IsAny<String>(), true), Times.Once());
|
||||||
|
|
||||||
Mocker.GetMock<HistoryProvider>()
|
Mocker.GetMock<HistoryProvider>()
|
||||||
.Verify(s => s.Add(It.Is<History>(h => h.EpisodeId == 12 && h.SeriesId == 5)), Times.Once());
|
.Verify(s => s.Add(It.Is<History>(h => h.EpisodeId == 12 && h.SeriesId == 5)), Times.Once());
|
||||||
|
|
Loading…
Reference in a new issue