public AppendNonBreakingSpaceIfBlank ( ) : |
||
return |
public void FailureReportedEventHandler(object sender, global::Concordion.Internal.Commands.FailureReportedEventArgs e) { Element element = e.Element; element.AddStyleClass("failure"); Element spanExpected = new Element("del"); spanExpected.AddStyleClass("expected"); element.MoveChildrenTo(spanExpected); element.AppendChild(spanExpected); spanExpected.AppendNonBreakingSpaceIfBlank(); Element spanActual = new Element("ins"); spanActual.AddStyleClass("actual"); if (e.Actual != null) { spanActual.AppendText(e.Actual.ToString()); } else { spanActual.AppendText("(null)"); } spanActual.AppendNonBreakingSpaceIfBlank(); element.AppendText("\n"); element.AppendChild(spanActual); }
private Element ExpectedSpan(Element element) { Element spanExpected = new Element("del").AddStyleClass("expected"); element.MoveChildrenTo(spanExpected); spanExpected.AppendNonBreakingSpaceIfBlank(); Element spanFailure = new Element("span").AddStyleClass("failure"); spanFailure.AppendChild(spanExpected); return spanFailure; }
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); }