|
|
|
@ -18,10 +18,6 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
[TestCase("Sonny.With.a.Chance.S02E15", "Sonny.With.a.Chance", 2, 15)]
|
|
|
|
|
[TestCase("Two.and.a.Half.Me.103.720p.HDTV.X264-DIMENSION", "Two.and.a.Half.Me", 1, 3)]
|
|
|
|
|
[TestCase("Two.and.a.Half.Me.113.720p.HDTV.X264-DIMENSION", "Two.and.a.Half.Me", 1, 13)]
|
|
|
|
@ -67,7 +63,6 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
[TestCase("WEEDS.S03E01-06.DUAL.BDRip.XviD.AC3.-HELLYWOOD", QualityTypes.DVD)]
|
|
|
|
|
[TestCase("WEEDS.S03E01-06.DUAL.BDRip.X-viD.AC3.-HELLYWOOD", QualityTypes.DVD)]
|
|
|
|
|
[TestCase("WEEDS.S03E01-06.DUAL.BDRip.AC3.-HELLYWOOD", QualityTypes.DVD)]
|
|
|
|
@ -127,7 +122,7 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
|
|
[Timeout(1000)]
|
|
|
|
|
[TestCase("WEEDS.S03E01-06.DUAL.BDRip.XviD.AC3.-HELLYWOOD", "WEEDS", 3, new[] { 1, 2, 3, 4, 5, 6 }, 6)]
|
|
|
|
|
[TestCase("Two.and.a.Half.Men.103.104.720p.HDTV.X264-DIMENSION", "Two.and.a.Half.Men", 1, new[] { 3, 4 }, 2)]
|
|
|
|
@ -147,7 +142,7 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
Assert.AreEqual(count, result.EpisodeNumbers.Count);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
|
|
[TestCase("Conan 2011 04 18 Emma Roberts HDTV XviD BFF", "Conan", 2011, 04, 18)]
|
|
|
|
|
[TestCase("The Tonight Show With Jay Leno 2011 04 15 1080i HDTV DD5 1 MPEG2 TrollHD", "The Tonight Show With Jay Leno", 2011, 04, 15)]
|
|
|
|
|
[TestCase("The.Daily.Show.2010.10.11.Johnny.Knoxville.iTouch-MW", "The.Daily.Show", 2010, 10, 11)]
|
|
|
|
@ -164,7 +159,7 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[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)]
|
|
|
|
@ -176,7 +171,7 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
Assert.AreEqual(0, result.EpisodeNumbers.Count);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
|
|
[TestCase("Conan", "conan")]
|
|
|
|
|
[TestCase("The Tonight Show With Jay Leno", "tonightshowwithjayleno")]
|
|
|
|
|
[TestCase("The.Daily.Show", "dailyshow")]
|
|
|
|
@ -188,7 +183,7 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
Assert.AreEqual(seriesName, result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
|
|
[TestCase(@"c:\test\", @"c:\test")]
|
|
|
|
|
[TestCase(@"c:\\test\\", @"c:\test")]
|
|
|
|
|
[TestCase(@"C:\\Test\\", @"C:\Test")]
|
|
|
|
@ -200,7 +195,7 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
Assert.AreEqual(clean, result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
|
|
[TestCase("CaPitAl", "capital")]
|
|
|
|
|
[TestCase("peri.od", "period")]
|
|
|
|
|
[TestCase("this.^&%^**$%@#$!That", "thisthat")]
|
|
|
|
@ -210,7 +205,7 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
Assert.AreEqual(clean, result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
|
|
[TestCase("the")]
|
|
|
|
|
[TestCase("and")]
|
|
|
|
|
[TestCase("or")]
|
|
|
|
@ -240,7 +235,7 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
|
|
[TestCase("the")]
|
|
|
|
|
[TestCase("and")]
|
|
|
|
|
[TestCase("or")]
|
|
|
|
|