示例#1
0
 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;
     }
 }
示例#2
0
 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();
 }
示例#3
0
 public void Write(ConsoleResult result)
 {
     while(!results.TryEnqueue(result)) {
         Thread.Sleep(0);
     }
     resultsAvailable.Set();
 }
示例#4
0
 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;
     }
 }