private void ReportPendingCount(int pendingCount) { CarnaConsole.WriteItem("Pending: "); if (pendingCount == 0) { CarnaConsole.WriteValue(pendingCount); } else { CarnaConsole.WritePending(pendingCount); } }
/// <summary> /// Reports the specified value with the specified status of the fixture step running. /// </summary> /// <param name="value">The value to be reported.</param> /// <param name="status">The status of the fixture step running.</param> /// <param name="lineBreak"> /// <c>true</c> if a line break is required; otherwise, <c>false</c>. /// </param> protected virtual void ReportValue(string value, FixtureStepStatus status, bool lineBreak = false) { switch (status) { case FixtureStepStatus.Ready: CarnaConsole.WriteReady(value); break; case FixtureStepStatus.Pending: CarnaConsole.WritePending(value); break; case FixtureStepStatus.Failed: CarnaConsole.WriteFailure(value); break; case FixtureStepStatus.None: CarnaConsole.WriteNote(value); break; default: CarnaConsole.WriteValue(value); break; } if (lineBreak) { CarnaConsole.WriteLine(); } }
private void ReportPassedCount(int passedCount) { CarnaConsole.WriteItem("Passed: "); CarnaConsole.WriteValue(passedCount); }
private void ReportTotalCount(int totalCount) { CarnaConsole.WriteItem("Total Count: "); CarnaConsole.WriteValue(totalCount); }