public void write_preview() { var cell = Cell.For<string>("name"); var step = new Step().With("name:Jeremy"); var tag = new CellTag(cell, step); tag.WritePreview(new TestContext()); tag.Text().ShouldEqual("Jeremy"); tag.HasClass(HtmlClasses.INPUT).ShouldBeTrue(); }
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(); }
public void write_preview() { var cell = Cell.For <string>("name"); var step = new Step().With("name:Jeremy"); var tag = new CellTag(cell, step); tag.WritePreview(new TestContext()); tag.Text().ShouldEqual("Jeremy"); tag.HasClass(HtmlClasses.INPUT).ShouldBeTrue(); }
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(); }
public void cell_has_the_exception_class() { tag.HasClass(HtmlClasses.EXCEPTION).ShouldBeTrue(); }
public void cell_has_the_fail_class() { tag.HasClass(HtmlClasses.FAIL).ShouldBeTrue(); }
public void cell_has_the_success_class() { tag.HasClass(HtmlClasses.PASS).ShouldBeTrue(); }