From c554e3f6b944c69046e250120a9f4dec6da991f2 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 29 Nov 2013 10:29:47 -0800 Subject: [PATCH] More tests for single title paring of shows with a number in the title --- src/NzbDrone.Core.Test/ParserTests/ParserFixture.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NzbDrone.Core.Test/ParserTests/ParserFixture.cs b/src/NzbDrone.Core.Test/ParserTests/ParserFixture.cs index 750a3cafa..3c27b30c4 100644 --- a/src/NzbDrone.Core.Test/ParserTests/ParserFixture.cs +++ b/src/NzbDrone.Core.Test/ParserTests/ParserFixture.cs @@ -89,6 +89,12 @@ namespace NzbDrone.Core.Test.ParserTests [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)] + [TestCase("Warehouse 13 - S01E01", "Warehouse 13", 1, 1)] + [TestCase("Don't Trust The B---- in Apartment 23.S01E01", "Don't Trust The B---- in Apartment 23", 1, 1)] + [TestCase("Warehouse.13.S01E01", "Warehouse.13", 1, 1)] + [TestCase("Dont.Trust.The.B----.in.Apartment.23.S01E01", "Dont.Trust.The.B----.in.Apartment.23", 1, 1)] + [TestCase("24 S01E01", "24", 1, 1)] + [TestCase("24.S01E01", "24", 1, 1)] public void ParseTitle_single(string postTitle, string title, int seasonNumber, int episodeNumber) { var result = Parser.Parser.ParseTitle(postTitle);