예제 #1
0
        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();
        }
예제 #2
0
        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();
        }
예제 #3
0
        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();
        }
예제 #4
0
        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();
        }
예제 #5
0
 public void cell_has_the_exception_class()
 {
     tag.HasClass(HtmlClasses.EXCEPTION).ShouldBeTrue();
 }
예제 #6
0
 public void cell_has_the_fail_class()
 {
     tag.HasClass(HtmlClasses.FAIL).ShouldBeTrue();
 }
예제 #7
0
 public void cell_has_the_success_class()
 {
     tag.HasClass(HtmlClasses.PASS).ShouldBeTrue();
 }