Added parsing and tests for Full Season Releases (no episode information)

This commit is contained in:
Mark McDowall 2011-04-26 08:26:41 -07:00
commit 21e14fbb84
2 changed files with 29 additions and 10 deletions

View file

@ -123,6 +123,19 @@ namespace NzbDrone.Core.Test
Assert.IsNull(result.Episodes);
}
[Test]
[Row("30.Rock.Season.04.HDTV.XviD-DIMENSION", "30.Rock", 4)]
[Row("Parks.and.Recreation.S02.720p.x264-DIMENSION", "Parks.and.Recreation", 2)]
[Row("The.Office.US.S03.720p.x264-DIMENSION", "The.Office.US", 3)]
public void full_season_release_parse(string postTitle, string title, int season)
{
var result = Parser.ParseEpisodeInfo(postTitle);
Assert.AreEqual(season, result.SeasonNumber);
Assert.AreEqual(Parser.NormalizeTitle(title), result.CleanTitle);
Assert.AreEqual(0, result.Episodes.Count);
}
[Test]
[Row("Conan", "conan")]
[Row("The Tonight Show With Jay Leno", "tonightshowwithjayleno")]