Fixed broken tests

This commit is contained in:
kay.one 2011-11-07 23:01:52 -08:00
parent 390dfbdee8
commit b43397752e
5 changed files with 11 additions and 14 deletions

View file

@ -1,6 +1,5 @@
using NLog;
using NLog.Config;
using NUnit.Framework;
using NzbDrone.Common;
namespace NzbDrone.Test.Common
@ -9,10 +8,14 @@ namespace NzbDrone.Test.Common
{
protected static void InitLogging()
{
LogConfiguration.RegisterConsoleLogger(LogLevel.Trace);
LogConfiguration.RegisterUdpLogger();
if (LogManager.Configuration == null || LogManager.Configuration is XmlLoggingConfiguration)
{
LogManager.Configuration = new LoggingConfiguration();
LogConfiguration.RegisterConsoleLogger(LogLevel.Trace);
LogConfiguration.RegisterUdpLogger();
RegisterExceptionVerification();
RegisterExceptionVerification();
}
}
private static void RegisterExceptionVerification()