Exemple #1
0
 public void CaseFailed(string @case, Exception[] exceptions)
 {
     using (Foreground.Red)
         Console.WriteLine("Test '{0}' failed: {1}", @case, exceptions.First().GetType().FullName);
     Console.Out.WriteCompoundStackTrace(exceptions);
     Console.WriteLine();
     Console.WriteLine();
 }
Exemple #2
0
 public void CaseFailed(string @case, Exception[] exceptions)
 {
     tdnet.TestFinished(new TestResult
     {
         Name = @case,
         State = TestState.Failed,
         Message = exceptions.First().GetType().FullName,
         StackTrace = CompoundStackTrace(exceptions),
     });
 }
Exemple #3
0
        public void CaseFailed(Case @case, Exception[] exceptions)
        {
            var entry = new StringBuilder();

            var primary = exceptions.First();
            entry.Append(string.Format("{0} failed: {1}", @case.Name, primary.Message));

            foreach (var exception in exceptions.Skip(1))
            {
                entry.AppendLine();
                entry.Append(string.Format("    Secondary Failure: {0}", exception.Message));
            }

            log.Add(entry.ToString());
        }