Ejemplo n.º 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;
     }
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 3
0
 public void Write(ConsoleResult result)
 {
     while(!results.TryEnqueue(result)) {
         Thread.Sleep(0);
     }
     resultsAvailable.Set();
 }
Ejemplo n.º 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;
     }
 }