public string FailureSummary(ContextCollection contexts) { if (contexts.Failures().Count() == 0) { return(""); } var summary = Environment.NewLine + "**** FAILURES ****" + Environment.NewLine; contexts.Failures().Do(f => summary += WriteFailure(f)); return(summary); }
public string Summary(ContextCollection contexts) { return("{0} Examples, {1} Failed, {2} Pending".With( contexts.Examples().Count(), contexts.Failures().Count(), contexts.Pendings().Count() )); }