From c01194e3452c1566375c3a2ec06961660fb57e27 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Tue, 10 Sep 2013 00:10:37 -0700 Subject: [PATCH] fixed trakt test to be less fragile. --- NzbDrone.Core.Test/MetadataSourceTests/TraktProxyFixture.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core.Test/MetadataSourceTests/TraktProxyFixture.cs b/NzbDrone.Core.Test/MetadataSourceTests/TraktProxyFixture.cs index e485684a2..b1df6db29 100644 --- a/NzbDrone.Core.Test/MetadataSourceTests/TraktProxyFixture.cs +++ b/NzbDrone.Core.Test/MetadataSourceTests/TraktProxyFixture.cs @@ -88,13 +88,15 @@ namespace NzbDrone.Core.Test.MetadataSourceTests foreach (var episode in episodes) { 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) { episode.Should().NotBeNull(); - episode.Title.Should().NotBeBlank(); episode.EpisodeNumber.Should().NotBe(0); episode.TvDbEpisodeId.Should().BeGreaterThan(0);