From 2d1f506f93ab007540429fdf74c1ec9ce96f9f02 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 18 Jan 2012 22:10:37 -0800 Subject: [PATCH] Fixed tests, results won't be as focused for nzbs.org. --- NzbDrone.Core.Test/IndexerTests.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/NzbDrone.Core.Test/IndexerTests.cs b/NzbDrone.Core.Test/IndexerTests.cs index bb11233b0..97da632b4 100644 --- a/NzbDrone.Core.Test/IndexerTests.cs +++ b/NzbDrone.Core.Test/IndexerTests.cs @@ -194,8 +194,6 @@ namespace NzbDrone.Core.Test [TestCase("In plain Sight", 1, 4)] public void nzbsorg_search_returns_valid_results(string title, int season, int episode) { - - Mocker.GetMock() .SetupGet(c => c.NzbsOrgUId) .Returns("43516"); @@ -212,8 +210,7 @@ namespace NzbDrone.Core.Test result.Should().NotBeEmpty(); result.Should().OnlyContain(r => r.CleanTitle == Parser.NormalizeTitle(title)); - result.Should().OnlyContain(r => r.SeasonNumber == season); - result.Should().OnlyContain(r => r.EpisodeNumbers.Contains(episode)); + result.Should().Contain(r => r.SeasonNumber == season && r.EpisodeNumbers.Contains(episode)); } [TestCase("simpsons", 21, 23)]