|
|
|
@ -112,16 +112,16 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
[Row("The Tonight Show With Jay Leno 2011 04 15 1080i HDTV DD5 1 MPEG2 TrollHD", "The Tonight Show With Jay Leno", 2011, 04, 15)]
|
|
|
|
|
[Row("The.Daily.Show.2010.10.11.Johnny.Knoxville.iTouch-MW", "The.Daily.Show", 2010, 10, 11)]
|
|
|
|
|
[Row("The Daily Show - 2011-04-12 - Gov. Deval Patrick", "The.Daily.Show", 2011, 04, 12)]
|
|
|
|
|
[Row("2011.01.10 - Denis Leary - HD TV.mkv", 2011, 1, 10)]
|
|
|
|
|
[Row("2011.03.13 - Denis Leary - HD TV.mkv", 2011, 3, 13)]
|
|
|
|
|
[Row("2011-03-13 - Denis Leary - HD TV.mkv", 2011, 3, 13)]
|
|
|
|
|
[Row("2011.01.10 - Denis Leary - HD TV.mkv","", 2011, 1, 10)]
|
|
|
|
|
[Row("2011.03.13 - Denis Leary - HD TV.mkv", "", 2011, 3, 13)]
|
|
|
|
|
[Row("2011-03-13 - Denis Leary - HD TV.mkv", "", 2011, 3, 13)]
|
|
|
|
|
public void episode_daily_parse(string postTitle, string title, int year, int month, int day)
|
|
|
|
|
{
|
|
|
|
|
var result = Parser.ParseEpisodeInfo(postTitle);
|
|
|
|
|
var airDate = new DateTime(year, month, day);
|
|
|
|
|
Assert.AreEqual(Parser.NormalizeTitle(title), result.CleanTitle);
|
|
|
|
|
Assert.AreEqual(airDate, result.AirDate);
|
|
|
|
|
Assert.IsEmpty(result.Episodes);
|
|
|
|
|
Assert.IsNull(result.Episodes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|