mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-10 23:29:53 +02:00
WebException now marks indexer tests as Inconclusive.
This commit is contained in:
parent
458565d473
commit
288359627e
@ -204,12 +204,12 @@ public void nzbsorg_search_returns_valid_results(string title, int season, int e
|
||||
|
||||
var result = mocker.Resolve<NzbsOrg>().FetchEpisode(title, season, episode);
|
||||
|
||||
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
||||
|
||||
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));
|
||||
|
||||
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
||||
}
|
||||
|
||||
[TestCase("simpsons", 21, 23)]
|
||||
@ -231,12 +231,12 @@ public void newzbin_search_returns_valid_results(string title, int season, int e
|
||||
|
||||
var result = mocker.Resolve<Newzbin>().FetchEpisode(title, season, episode);
|
||||
|
||||
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
||||
|
||||
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));
|
||||
|
||||
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -256,12 +256,12 @@ public void nzbmatrix_search_returns_valid_results()
|
||||
|
||||
var result = mocker.Resolve<NzbMatrix>().FetchEpisode("Simpsons", 21, 23);
|
||||
|
||||
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
||||
|
||||
result.Should().NotBeEmpty();
|
||||
result.Should().OnlyContain(r => r.CleanTitle == "simpsons");
|
||||
result.Should().OnlyContain(r => r.SeasonNumber == 21);
|
||||
result.Should().OnlyContain(r => r.EpisodeNumbers.Contains(23));
|
||||
|
||||
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -281,13 +281,12 @@ public void nzbsorg_multi_word_search_returns_valid_results()
|
||||
|
||||
var result = mocker.Resolve<NzbsOrg>().FetchEpisode("Blue Bloods", 1, 19);
|
||||
|
||||
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
||||
|
||||
result.Should().NotBeEmpty();
|
||||
result.Should().OnlyContain(r => r.CleanTitle == "bluebloods");
|
||||
result.Should().OnlyContain(r => r.SeasonNumber == 1);
|
||||
result.Should().OnlyContain(r => r.EpisodeNumbers.Contains(19));
|
||||
|
||||
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
||||
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -307,12 +306,12 @@ public void nzbmatrix_multi_word_search_returns_valid_results()
|
||||
|
||||
var result = mocker.Resolve<NzbMatrix>().FetchEpisode("Blue Bloods", 1, 19);
|
||||
|
||||
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
||||
|
||||
result.Should().NotBeEmpty();
|
||||
result.Should().OnlyContain(r => r.CleanTitle == "bluebloods");
|
||||
result.Should().OnlyContain(r => r.SeasonNumber == 1);
|
||||
result.Should().OnlyContain(r => r.EpisodeNumbers.Contains(19));
|
||||
|
||||
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user