public void End(TestResult test)
 {
     writers.ForEach(writer => writer.End(test));
 }
示例#2
0
 public void Add(TestResult testResult)
 {
     TestResults.Add(testResult);
     Count(testResult);
 }
 public void Begin(TestResult test)
 {
     writers.ForEach(writer => writer.Begin(test));
 }
 public void Begin(TestResult test)
 {
     // do nothing
 }
 public static string ReportOn(TestResult result)
 {
     return result.Passed ? "." : result.Errored ? "E" : "F";
 }
 // todo: it doesn't look like testresult is being set to fail/error ever
 public void End(TestResult test)
 {
     if (test.Passed)
     {
         channel.Append(".");
     }
     else if (test.Failed)
     {
         channel.AppendFailure("F");
     }
     else if (test.Errored)
     {
         channel.AppendError("E");
     }
 }
 public void End(TestResult test)
 {
     EndCurrentElement();
 }
        public void Begin(TestResult test)
        {
            xmlWriter.WriteStartElement("table");

            xmlWriter.WriteStartElement("tr");
            xmlWriter.WriteStartElement("td");

            StartSpan("fixture");
            xmlWriter.WriteRaw(test.TestName);
            EndCurrentElement(); // fixture

            EndCurrentElement(); // td
            EndCurrentElement(); // tr

            xmlWriter.WriteStartElement("tr");
            test.Headers.ForEach(s => xmlWriter.WriteElementString("td", s));
            EndCurrentElement(); //tr
        }