trying to fix nunit in teamcity.

pull/3113/head
Keivan Beigi 12 years ago
parent 3162e4864d
commit ddff5dbad4

@ -41,7 +41,7 @@ namespace NzbDrone.Test.Common
[TearDown] [TearDown]
public void LoggingDownBase() 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(); ExceptionVerification.AssertNoUnexcpectedLogs();
} }

@ -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(); var testName = TestContext.CurrentContext.Test.Name.ToLower();

Loading…
Cancel
Save