public void FailureReported(AssertFailureEvent failureEvent)
        {
            var element = failureEvent.Element;

            element.AddStyleClass("failure");

            var spanExpected = new Element("del");

            spanExpected.AddStyleClass("expected");
            element.MoveChildrenTo(spanExpected);
            element.AppendChild(spanExpected);
            spanExpected.AppendNonBreakingSpaceIfBlank();

            var spanActual = new Element("ins");

            spanActual.AddStyleClass("actual");
            spanActual.AppendText(failureEvent.Actual != null ? failureEvent.Actual.ToString() : "(null)");
            spanActual.AppendNonBreakingSpaceIfBlank();

            element.AppendText("\n");
            element.AppendChild(spanActual);
        }
Ejemplo n.º 2
0
 public void failureReported(AssertFailureEvent failureEvent)
 {
     m_LogWriter.WriteLine("Failure expected:'{0}' actual:'{1}'", failureEvent.getExpected(), failureEvent.getActual());
 }
Ejemplo n.º 3
0
 public void FailureReported(AssertFailureEvent failureEvent)
 {
     this.m_Events.Add(failureEvent);
 }
Ejemplo n.º 4
0
 public void failureReported(AssertFailureEvent failureEvent)
 {
     this.m_Events.Add(failureEvent);
 }
Ejemplo n.º 5
0
 public void failureReported(AssertFailureEvent failureEvent)
 {
     m_LogWriter.WriteLine("Failure expected:'{0}' actual:'{1}'", failureEvent.getExpected(), failureEvent.getActual());
 }
Ejemplo n.º 6
0
 public void FailureReported(AssertFailureEvent failureEvent)
 {
     m_LogWriter.WriteLine("Failure expected:'{0}' actual:'{1}'", failureEvent.Expected, failureEvent.Actual);
 }