mirror of
https://github.com/Radarr/Radarr
synced 2024-12-23 00:12:44 +00:00
Added additional FullSeason parse test and another assertion.
This commit is contained in:
parent
9f07d7c27a
commit
b3d1b8c47e
1 changed files with 2 additions and 0 deletions
|
@ -195,12 +195,14 @@ public void parse_daily_should_fail_if_episode_is_far_in_future()
|
|||
[TestCase("30.Rock.Season.04.HDTV.XviD-DIMENSION", "30.Rock", 4)]
|
||||
[TestCase("Parks.and.Recreation.S02.720p.x264-DIMENSION", "Parks.and.Recreation", 2)]
|
||||
[TestCase("The.Office.US.S03.720p.x264-DIMENSION", "The.Office.US", 3)]
|
||||
[TestCase(@"Sons.of.Anarchy.S03.720p.BluRay-CLUE\REWARD", "Sons.of.Anarchy", 3)]
|
||||
public void full_season_release_parse(string postTitle, string title, int season)
|
||||
{
|
||||
var result = Parser.ParseTitle(postTitle);
|
||||
result.SeasonNumber.Should().Be(season);
|
||||
result.CleanTitle.Should().Be(Parser.NormalizeTitle(title));
|
||||
result.EpisodeNumbers.Count.Should().Be(0);
|
||||
result.FullSeason.Should().BeTrue();
|
||||
}
|
||||
|
||||
[TestCase("Conan", "conan")]
|
||||
|
|
Loading…
Reference in a new issue