|
|
@ -204,6 +204,8 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
|
|
|
|
|
|
|
var result = mocker.Resolve<NzbsOrg>().FetchEpisode(title, season, episode);
|
|
|
|
var result = mocker.Resolve<NzbsOrg>().FetchEpisode(title, season, episode);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
|
|
|
|
|
|
|
|
|
|
|
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().OnlyContain(r => r.SeasonNumber == season);
|
|
|
@ -229,6 +231,8 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
|
|
|
|
|
|
|
var result = mocker.Resolve<Newzbin>().FetchEpisode(title, season, episode);
|
|
|
|
var result = mocker.Resolve<Newzbin>().FetchEpisode(title, season, episode);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
|
|
|
|
|
|
|
|
|
|
|
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().OnlyContain(r => r.SeasonNumber == season);
|
|
|
@ -252,6 +256,8 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
|
|
|
|
|
|
|
var result = mocker.Resolve<NzbMatrix>().FetchEpisode("Simpsons", 21, 23);
|
|
|
|
var result = mocker.Resolve<NzbMatrix>().FetchEpisode("Simpsons", 21, 23);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
|
|
|
|
|
|
|
|
|
|
|
result.Should().NotBeEmpty();
|
|
|
|
result.Should().NotBeEmpty();
|
|
|
|
result.Should().OnlyContain(r => r.CleanTitle == "simpsons");
|
|
|
|
result.Should().OnlyContain(r => r.CleanTitle == "simpsons");
|
|
|
|
result.Should().OnlyContain(r => r.SeasonNumber == 21);
|
|
|
|
result.Should().OnlyContain(r => r.SeasonNumber == 21);
|
|
|
@ -275,11 +281,12 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
|
|
|
|
|
|
|
var result = mocker.Resolve<NzbsOrg>().FetchEpisode("Blue Bloods", 1, 19);
|
|
|
|
var result = mocker.Resolve<NzbsOrg>().FetchEpisode("Blue Bloods", 1, 19);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
|
|
|
|
|
|
|
|
|
|
|
result.Should().NotBeEmpty();
|
|
|
|
result.Should().NotBeEmpty();
|
|
|
|
result.Should().OnlyContain(r => r.CleanTitle == "bluebloods");
|
|
|
|
result.Should().OnlyContain(r => r.CleanTitle == "bluebloods");
|
|
|
|
result.Should().OnlyContain(r => r.SeasonNumber == 1);
|
|
|
|
result.Should().OnlyContain(r => r.SeasonNumber == 1);
|
|
|
|
result.Should().OnlyContain(r => r.EpisodeNumbers.Contains(19));
|
|
|
|
result.Should().OnlyContain(r => r.EpisodeNumbers.Contains(19));
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -299,6 +306,8 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
|
|
|
|
|
|
|
var result = mocker.Resolve<NzbMatrix>().FetchEpisode("Blue Bloods", 1, 19);
|
|
|
|
var result = mocker.Resolve<NzbMatrix>().FetchEpisode("Blue Bloods", 1, 19);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
|
|
|
|
|
|
|
|
|
|
|
result.Should().NotBeEmpty();
|
|
|
|
result.Should().NotBeEmpty();
|
|
|
|
result.Should().OnlyContain(r => r.CleanTitle == "bluebloods");
|
|
|
|
result.Should().OnlyContain(r => r.CleanTitle == "bluebloods");
|
|
|
|
result.Should().OnlyContain(r => r.SeasonNumber == 1);
|
|
|
|
result.Should().OnlyContain(r => r.SeasonNumber == 1);
|
|
|
|