From b3d1b8c47e64804c5557f06ccbe5b957202427c1 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 8 Dec 2011 22:45:49 -0800 Subject: [PATCH] Added additional FullSeason parse test and another assertion. --- NzbDrone.Core.Test/ParserTest.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NzbDrone.Core.Test/ParserTest.cs b/NzbDrone.Core.Test/ParserTest.cs index 0e8d16e87..01f1f975a 100644 --- a/NzbDrone.Core.Test/ParserTest.cs +++ b/NzbDrone.Core.Test/ParserTest.cs @@ -195,12 +195,14 @@ namespace NzbDrone.Core.Test [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")]