public void collapse_is_idempotent() { var result = new StepResults(); result.MoveFrame(); result.MoveFrame(); result.MoveFrame(); result.CaptureException("bad"); result.Collapse(); result.Collapse(); result.Collapse(); result.ExceptionText.ShouldEqual("bad"); }
public void collapse_with_a_hierarchy() { var result = new StepResults(); result.MoveFrame(); result.MoveFrame(); result.MoveFrame(); result.CaptureException("bad"); result.MoveFrame(); result.MoveFrame(); result.CaptureException("worse"); result.Collapse(); result.HasErrors().ShouldBeTrue(); result.ExceptionText.ShouldContain("bad"); result.ExceptionText.ShouldContain("worse"); }
private void writeResultsRow(IStep step, ITestContext context) { AddBodyRow(row => { StepResults results = context.ResultsFor(step); results.Collapse(); _writer.DisplayCells.Each(cell => { var tag = new CellTag(cell, step); tag.TagName("td"); row.Append(tag); tag.WriteResults(results, context); }); row.FirstChild().AddClass("left-cell"); results.ForExceptionText(writeExceptionText); }); }