@ -86,6 +86,9 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("Hostages.S01E04.2-45.PM.[HDTV-720p] . mkv ", " Hostages ", 1, 4)]
[TestCase("S01E04", "", 1, 4)]
[TestCase("1x04", "", 1, 4)]
[TestCase("10.Things.You.Dont.Know.About.S02E04.Prohibition.HDTV.XviD-AFG", "10 Things You Dont Know About", 2, 4)]
[TestCase("30 Rock - S01E01 - Pilot.avi", "30 Rock", 1, 1)]
[TestCase("666 Park Avenue - S01E01", "666 Park Avenue", 1, 1)]
public void ParseTitle_single ( string postTitle , string title , int seasonNumber , int episodeNumber )
{
var result = Parser . Parser . ParseTitle ( postTitle ) ;
@ -94,6 +97,7 @@ namespace NzbDrone.Core.Test.ParserTests
result . SeasonNumber . Should ( ) . Be ( seasonNumber ) ;
result . EpisodeNumbers . First ( ) . Should ( ) . Be ( episodeNumber ) ;
result . SeriesTitle . Should ( ) . Be ( title . CleanSeriesTitle ( ) ) ;
result . AbsoluteEpisodeNumbers . Should ( ) . BeEmpty ( ) ;
}
[TestCase(@"z:\tv shows\battlestar galactica (2003)\Season 3\S03E05 - Collaborators.mkv", 3, 5)]
@ -193,10 +197,10 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("[K-F] One Piece S10E14 214 ", " One Piece ", 214, 10, 14)]
[TestCase("[K-F] One Piece 10 x14 214 ", " One Piece ", 214, 10, 14)]
[TestCase("[K-F] One Piece 214 10 x14 ", " One Piece ", 214, 10, 14)]
[TestCase("One Piece S10E14 214", "One Piece", 214, 10, 14)]
[TestCase("One Piece 10x14 214", "One Piece", 214, 10, 14)]
[TestCase("One Piece 214 10x14", "One Piece", 214, 10, 14)]
[TestCase("214 One Piece 10x14", "One Piece", 214, 10, 14)]
// [TestCase("One Piece S10E14 214", "One Piece", 214, 10, 14)]
// [TestCase("One Piece 10x14 214", "One Piece", 214, 10, 14)]
// [TestCase("One Piece 214 10x14", "One Piece", 214, 10, 14)]
// [TestCase("214 One Piece 10x14", "One Piece", 214, 10, 14)]
[TestCase("Bleach - 031 - The Resolution to Kill [Lunar] . avi ", " Bleach ", 31, 0, 0)]
[TestCase("Bleach - 031 - The Resolution to Kill [Lunar] ", " Bleach ", 31, 0, 0)]
[TestCase("[ACX] Hack Sign 01 Role Play [ Kosaka ] [ 9 C57891E ] . mkv ", " Hack Sign ", 1, 0, 0)]