public override void Write(ConsoleResult result) { switch(result.Status) { case TestStatus.TestFailure: WriteTestName(FailureColor, result.Context, result.TestName); break; case TestStatus.Pending: WriteTestName(PendingColor, result.Context, result.TestName); break; case TestStatus.Success: WriteTestName(SuccessColor, result.Context, result.TestName); break; } }
public override void Write(ConsoleResult result) { switch(result.Status) { case TestStatus.TestFailure: WriteTestLabel(FailureColor, result.Context, result.TestName); break; case TestStatus.Pending: WriteTestLabel(PendingColor, result.Context, result.TestName); if(!string.IsNullOrEmpty(result.PendingReason)) Write(InfoColor, " \"{0}\"", result.PendingReason); break; case TestStatus.Success: WriteTestLabel(SuccessColor, result.Context, result.TestName); break; } if(showTimings) Write(DebugColor, " [{0}]", result.Duration); WriteLine(); }
public void Write(ConsoleResult result) { while(!results.TryEnqueue(result)) { Thread.Sleep(0); } resultsAvailable.Set(); }
public virtual void Write(ConsoleResult result) { switch(result.Status) { case TestStatus.Success: Write(SuccessColor, "."); break; case TestStatus.Pending: Write(PendingColor, "?"); break; case TestStatus.TestFailure: Write(FailureColor, "F"); break; } }