From f278c7f2307f1a1a32151f36256b3348bfde6a23 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 29 Apr 2013 17:26:28 -0700 Subject: [PATCH] Fixed broken date tests --- NzbDrone.Core.Test/ParserTests/ParserFixture.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Core.Test/ParserTests/ParserFixture.cs b/NzbDrone.Core.Test/ParserTests/ParserFixture.cs index 6a02e3c60..3ece93512 100644 --- a/NzbDrone.Core.Test/ParserTests/ParserFixture.cs +++ b/NzbDrone.Core.Test/ParserTests/ParserFixture.cs @@ -197,7 +197,7 @@ namespace NzbDrone.Core.Test.ParserTests [TestCase("Conan {year} {month} {day} Emma Roberts HDTV XviD BFF")] - [TestCase("The Tonight Show With Jay Leno {year} {day} {month} 1080i HDTV DD5 1 MPEG2 TrollHD")] + [TestCase("The Tonight Show With Jay Leno {year} {month} {day} 1080i HDTV DD5 1 MPEG2 TrollHD")] [TestCase("The.Daily.Show.{year}.{month}.{day}.Johnny.Knoxville.iTouch-MW")] [TestCase("The Daily Show - {year}-{month}-{day} - Gov. Deval Patrick")] [TestCase("{year}.{month}.{day} - Denis Leary - HD TV.mkv")] @@ -207,7 +207,7 @@ namespace NzbDrone.Core.Test.ParserTests { var twoDaysFromNow = DateTime.Now.AddDays(2); - var validDate = title.Expand(new { year = twoDaysFromNow.Year, month = twoDaysFromNow.Month.ToString("00"), day = twoDaysFromNow.Day }); + var validDate = title.Expand(new { year = twoDaysFromNow.Year, month = twoDaysFromNow.Month.ToString("00"), day = twoDaysFromNow.Day.ToString("00") }); Parser.Parser.ParseTitle(validDate).Should().BeNull(); }