예제 #1
0
 private void ReportFailedCount(int failedCount)
 {
     CarnaConsole.WriteItem("Failed: ");
     if (failedCount == 0)
     {
         CarnaConsole.WriteValue(failedCount);
     }
     else
     {
         CarnaConsole.WriteFailure(failedCount);
     }
 }
예제 #2
0
 private void ReportPendingCount(int pendingCount)
 {
     CarnaConsole.WriteItem("Pending: ");
     if (pendingCount == 0)
     {
         CarnaConsole.WriteValue(pendingCount);
     }
     else
     {
         CarnaConsole.WritePending(pendingCount);
     }
 }
예제 #3
0
    private void ReportExecutionTimeSummary(IList <FixtureResult> results)
    {
        var startTime = results.StartTime();
        var endTime   = results.EndTime();

        CarnaConsole.WriteItem("  Start Time: ");
        CarnaConsole.WriteLineValue($"{startTime:u}");

        CarnaConsole.WriteItem("    End Time: ");
        CarnaConsole.WriteLineValue($"{endTime:u}");

        CarnaConsole.WriteItem("    Duration: ");
        CarnaConsole.WriteLineValue($"{(endTime - startTime).TotalSeconds:0.000} seconds");
        CarnaConsole.WriteLine();
    }
예제 #4
0
    private void ReportRunSummary(IList <FixtureResult> results)
    {
        CarnaConsole.WriteLineHeader("Run Summary");
        CarnaConsole.WriteItem("  ");

        ReportTotalCount(results.TotalCount());
        CarnaConsole.WriteItem(", ");

        ReportPassedCount(results.PassedCount());
        CarnaConsole.WriteItem(", ");

        ReportPendingCount(results.PendingCount());
        CarnaConsole.WriteItem(", ");

        ReportFailedCount(results.FailedCount());
        CarnaConsole.WriteLine();
    }
예제 #5
0
 private void ReportPassedCount(int passedCount)
 {
     CarnaConsole.WriteItem("Passed: ");
     CarnaConsole.WriteValue(passedCount);
 }
예제 #6
0
 private void ReportTotalCount(int totalCount)
 {
     CarnaConsole.WriteItem("Total Count: ");
     CarnaConsole.WriteValue(totalCount);
 }