mirror of
https://github.com/lidarr/Lidarr
synced 2025-03-03 18:15:37 +00:00
Added test for season search
This commit is contained in:
parent
c738a32162
commit
edf06dda3e
1 changed files with 11 additions and 0 deletions
|
@ -122,5 +122,16 @@ public void SeasonSearch_should_allow_searching_of_season_zero()
|
||||||
|
|
||||||
ExceptionVerification.ExpectedWarns(1);
|
ExceptionVerification.ExpectedWarns(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void should_search_for_individual_episodes_when_no_partial_results_are_returned()
|
||||||
|
{
|
||||||
|
Mocker.GetMock<SearchProvider>()
|
||||||
|
.Setup(c => c.PartialSeasonSearch(notification, 1, 1)).Returns(new List<int>());
|
||||||
|
|
||||||
|
Mocker.Resolve<SeasonSearchJob>().Start(notification, new { SeriesId = 1, SeasonNumber = 1 });
|
||||||
|
|
||||||
|
Mocker.GetMock<EpisodeSearchJob>().Verify(v => v.Start(notification, It.Is<object>(o => o.GetPropertyValue<Int32>("EpisodeId") > 0)), Times.Exactly(_episodes.Count));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue