コード例 #1
0
        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);
        }
コード例 #2
0
 public string Summary(ContextCollection contexts)
 {
     return("{0} Examples, {1} Failed, {2} Pending".With(
                contexts.Examples().Count(),
                contexts.Failures().Count(),
                contexts.Pendings().Count()
                ));
 }