From ddff5dbad40c214e5bb1291e31bff866743d000c Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Mon, 29 Apr 2013 17:24:11 -0700 Subject: [PATCH] trying to fix nunit in teamcity. --- NzbDrone.Test.Common/LoggingTest.cs | 2 +- NzbDrone.Test.Common/TestBase.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Test.Common/LoggingTest.cs b/NzbDrone.Test.Common/LoggingTest.cs index 0e3961df6..d5320b008 100644 --- a/NzbDrone.Test.Common/LoggingTest.cs +++ b/NzbDrone.Test.Common/LoggingTest.cs @@ -41,7 +41,7 @@ namespace NzbDrone.Test.Common [TearDown] public void LoggingDownBase() { - if (TestContext.CurrentContext.Result.Status == TestStatus.Passed) + if (TestContext.CurrentContext.Result.State == TestState.Failure || TestContext.CurrentContext.Result.State == TestState.Error) { ExceptionVerification.AssertNoUnexcpectedLogs(); } diff --git a/NzbDrone.Test.Common/TestBase.cs b/NzbDrone.Test.Common/TestBase.cs index 1f8231096..10764ce17 100644 --- a/NzbDrone.Test.Common/TestBase.cs +++ b/NzbDrone.Test.Common/TestBase.cs @@ -103,7 +103,7 @@ namespace NzbDrone.Test.Common { } - if (TestContext.CurrentContext.Result.Status == TestStatus.Failed) + if (TestContext.CurrentContext.Result.State == TestState.Failure || TestContext.CurrentContext.Result.State == TestState.Error) { var testName = TestContext.CurrentContext.Test.Name.ToLower();