WritePreview() 공개 메소드

public WritePreview ( ITestContext context ) : void
context ITestContext
리턴 void
예제 #1
0
            public void Input(TextInput input)
            {
                var cellTag = new CellTag(input.Cell, _step);

                cellTag.WritePreview(_context);
                _tag.Append(cellTag);
            }
예제 #2
0
        public void write_preview_when_the_cell_value_is_missing_in_the_step()
        {
            var cell = Cell.For<string>("name");
            var step = new Step();

            var tag = new CellTag(cell, step);
            tag.WritePreview(new TestContext());

            tag.Text().ShouldEqual("MISSING");
        }
예제 #3
0
        public void write_preview_when_the_cell_value_is_null_in_the_step()
        {
            var cell = Cell.For<string>("name");
            var step = new Step();
            step.Set("name", null);

            var tag = new CellTag(cell, step);
            tag.WritePreview(new TestContext());

            tag.Text().ShouldEqual(Step.NULL);
        }
예제 #4
0
        public void write_preview_when_the_cell_value_is_blank()
        {
            var cell = Cell.For<string>("name");
            var step = new Step();
            step.Set("name", string.Empty);

            var tag = new CellTag(cell, step);
            tag.WritePreview(new TestContext());

            tag.Text().ShouldEqual(Step.BLANK);
        }
예제 #5
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();
        }
예제 #6
0
        public void write_preview_when_the_cell_value_is_missing_in_the_step()
        {
            var cell = Cell.For <string>("name");
            var step = new Step();

            var tag = new CellTag(cell, step);

            tag.WritePreview(new TestContext());

            tag.Text().ShouldEqual("MISSING");
        }
예제 #7
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();
        }
예제 #8
0
        public void write_preview_when_the_cell_value_is_blank()
        {
            var cell = Cell.For <string>("name");
            var step = new Step();

            step.Set("name", string.Empty);

            var tag = new CellTag(cell, step);

            tag.WritePreview(new TestContext());

            tag.Text().ShouldEqual(Step.BLANK);
        }
예제 #9
0
        public void write_preview_when_the_cell_value_is_null_in_the_step()
        {
            var cell = Cell.For <string>("name");
            var step = new Step();

            step.Set("name", null);

            var tag = new CellTag(cell, step);

            tag.WritePreview(new TestContext());

            tag.Text().ShouldEqual(Step.NULL);
        }
예제 #10
0
        private void writePreviewRow(IStep step, ITestContext context)
        {
            AddBodyRow(row =>
            {
                _writer.DisplayCells.Each(cell =>
                {
                    var tag = new CellTag(cell, step);
                    tag.WritePreview(context);

                    row.Cell().Append(tag);
                });

                row.FirstChild().AddClass("left-cell");
            });
        }
예제 #11
0
        private void writePreviewRow(IStep step, ITestContext context)
        {
            AddBodyRow(row =>
            {
                _writer.DisplayCells.Each(cell =>
                {
                    var tag = new CellTag(cell, step);
                    tag.WritePreview(context);

                    row.Cell().Append(tag);
                });

                row.FirstChild().AddClass("left-cell");
            });
        }
예제 #12
0
 public void TextInput(TextInput input)
 {
     var cellTag = new CellTag(input.Cell, _step);
     cellTag.WritePreview(_context);
     _tag.Child(cellTag);
 }
예제 #13
0
        private void writePreviewRow(IStep step, ITestContext context)
        {
            AddBodyRow(row =>
            {
                _table.Cells.Each(cell =>
                {
                    var tag = new CellTag(cell, step);
                    tag.WritePreview(context);

                    row.Cell().Child(tag);
                });
            });
        }