mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
fixed trakt test to be less fragile.
This commit is contained in:
parent
b3c9217412
commit
c01194e345
@ -88,13 +88,15 @@ private void ValidateEpisodes(List<Episode> episodes)
|
|||||||
foreach (var episode in episodes)
|
foreach (var episode in episodes)
|
||||||
{
|
{
|
||||||
ValidateEpisode(episode);
|
ValidateEpisode(episode);
|
||||||
|
|
||||||
|
//if atleast one episdoe has title it means parse it working.
|
||||||
|
episodes.Should().Contain(c => !string.IsNullOrWhiteSpace(c.Title));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ValidateEpisode(Episode episode)
|
private void ValidateEpisode(Episode episode)
|
||||||
{
|
{
|
||||||
episode.Should().NotBeNull();
|
episode.Should().NotBeNull();
|
||||||
episode.Title.Should().NotBeBlank();
|
|
||||||
episode.EpisodeNumber.Should().NotBe(0);
|
episode.EpisodeNumber.Should().NotBe(0);
|
||||||
episode.TvDbEpisodeId.Should().BeGreaterThan(0);
|
episode.TvDbEpisodeId.Should().BeGreaterThan(0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user