public void End(TestResult test)
 {
     writers.ForEach(writer => writer.End(test));
 }
Ejemplo n.º 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");
     }
 }
Ejemplo n.º 7
0
 public void End(TestResult test)
 {
     EndCurrentElement();
 }
Ejemplo n.º 8
0
        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
        }