From 84449672ec3dacbfcc483d1c416ec0c0ee913729 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 3 Jul 2011 22:34:20 -0700 Subject: [PATCH] fixed broken tests --- NzbDrone.Core.Test/LogProviderTest.cs | 9 ++++++--- NzbDrone.Core.Test/TvDbProviderTest.cs | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/NzbDrone.Core.Test/LogProviderTest.cs b/NzbDrone.Core.Test/LogProviderTest.cs index ef62ddd3d..4ee5a2091 100644 --- a/NzbDrone.Core.Test/LogProviderTest.cs +++ b/NzbDrone.Core.Test/LogProviderTest.cs @@ -42,7 +42,10 @@ namespace NzbDrone.Core.Test var logItem = db.Fetch().First(); Assert.AreNotEqual(new DateTime(), logItem.Time); Assert.AreEqual(message, logItem.Message); - Assert.AreEqual(Logger.Name, logItem.Logger); + Assert.AreEqual("Core.Test.LogProviderTest", logItem.Logger); + + Logger.Name.Should().EndWith(logItem.Logger); + Assert.AreEqual(LogLevel.Info.Name, logItem.Level); Assert.AreEqual("write_log", logItem.Method); } @@ -106,7 +109,7 @@ namespace NzbDrone.Core.Test var logItem = db.Fetch().First(); Assert.AreNotEqual(new DateTime(), logItem.Time); Assert.AreEqual(message + ": " + ex.Message, logItem.Message); - Assert.AreEqual(Logger.Name, logItem.Logger); + Assert.AreEqual("Core.Test.LogProviderTest", logItem.Logger); Assert.AreEqual(LogLevel.Error.Name, logItem.Level); Assert.AreEqual(ex.GetType().ToString(), logItem.ExceptionType); Assert.AreEqual(ex.ToString(), logItem.Exception); @@ -140,7 +143,7 @@ namespace NzbDrone.Core.Test var logItem = db.Fetch().First(); Assert.AreNotEqual(new DateTime(), logItem.Time); Assert.AreEqual(ex.Message, logItem.Message); - Assert.AreEqual(Logger.Name, logItem.Logger); + Assert.AreEqual("Core.Test.LogProviderTest", logItem.Logger); Assert.AreEqual(LogLevel.Error.Name, logItem.Level); Assert.AreEqual(ex.GetType().ToString(), logItem.ExceptionType); Assert.AreEqual(ex.ToString(), logItem.Exception); diff --git a/NzbDrone.Core.Test/TvDbProviderTest.cs b/NzbDrone.Core.Test/TvDbProviderTest.cs index 8d5374482..67e4972fa 100644 --- a/NzbDrone.Core.Test/TvDbProviderTest.cs +++ b/NzbDrone.Core.Test/TvDbProviderTest.cs @@ -85,7 +85,7 @@ namespace NzbDrone.Core.Test } //assert - seasonsNumbers.Should().HaveCount(7); + seasonsNumbers.Should().HaveCount(8); seasons[1].Should().HaveCount(23); seasons[2].Should().HaveCount(19); seasons[3].Should().HaveCount(16);