Fixed tests, results won't be as focused for nzbs.org.

This commit is contained in:
Mark McDowall 2012-01-18 22:10:37 -08:00
parent e7b8ae4520
commit 2d1f506f93
1 changed files with 1 additions and 4 deletions

View File

@ -194,8 +194,6 @@ namespace NzbDrone.Core.Test
[TestCase("In plain Sight", 1, 4)] [TestCase("In plain Sight", 1, 4)]
public void nzbsorg_search_returns_valid_results(string title, int season, int episode) public void nzbsorg_search_returns_valid_results(string title, int season, int episode)
{ {
Mocker.GetMock<ConfigProvider>() Mocker.GetMock<ConfigProvider>()
.SetupGet(c => c.NzbsOrgUId) .SetupGet(c => c.NzbsOrgUId)
.Returns("43516"); .Returns("43516");
@ -212,8 +210,7 @@ namespace NzbDrone.Core.Test
result.Should().NotBeEmpty(); result.Should().NotBeEmpty();
result.Should().OnlyContain(r => r.CleanTitle == Parser.NormalizeTitle(title)); result.Should().OnlyContain(r => r.CleanTitle == Parser.NormalizeTitle(title));
result.Should().OnlyContain(r => r.SeasonNumber == season); result.Should().Contain(r => r.SeasonNumber == season && r.EpisodeNumbers.Contains(episode));
result.Should().OnlyContain(r => r.EpisodeNumbers.Contains(episode));
} }
[TestCase("simpsons", 21, 23)] [TestCase("simpsons", 21, 23)]