public void SetUp() { cell = Cell.For <string>("name"); cell.IsResult = true; step = new Step().With("name:Jeremy"); result = new StepResults(); result.SetActual("name", "Jeremy"); tag = new CellTag(cell, step); tag.WriteResults(result, new TestContext()); }
public void write_results_when_the_cell_is_just_an_input() { var cell = Cell.For <string>("name"); cell.IsResult = false; var step = new Step().With("name:Jeremy"); var tag = new CellTag(cell, step); tag.WriteResults(new StepResults(), new TestContext()); tag.Text().ShouldEqual("Jeremy"); tag.HasClass(HtmlClasses.INPUT).ShouldBeTrue(); }