trying to fix nunit in teamcity.

This commit is contained in:
Keivan Beigi 2013-04-29 17:24:11 -07:00
parent 3162e4864d
commit ddff5dbad4
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}

View File

@ -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();