Inheritance: HtmlTags.HtmlTag
Ejemplo n.º 1
0
            public void Input(TextInput input)
            {
                var cellTag = new CellTag(input.Cell, _step);

                cellTag.WriteResults(_results, _context);
                _tag.Append(cellTag);
            }
Ejemplo n.º 2
0
            public void Input(TextInput input)
            {
                var cellTag = new CellTag(input.Cell, _step);

                cellTag.WritePreview(_context);
                _tag.Append(cellTag);
            }
Ejemplo n.º 3
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");
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 7
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);
        }
Ejemplo n.º 8
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();
        }
Ejemplo n.º 9
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();
        }
Ejemplo n.º 10
0
        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());
        }
Ejemplo n.º 11
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);
        }
Ejemplo n.º 12
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);
        }
Ejemplo n.º 13
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();
        }
Ejemplo n.º 14
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");
            });
        }
Ejemplo n.º 15
0
        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);
            });
        }
Ejemplo n.º 16
0
        public void SetUp()
        {
            cell = Cell.For<string>("name");
            cell.IsResult = true;
            step = new Step().With("name:Jeremy");

            result = new StepResults();
            //result.SetActual("name", "Chad");
            result.MarkFailure("name");

            tag = new CellTag(cell, step);
            tag.WriteResults(result, new TestContext());
        }
Ejemplo n.º 17
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);
                });
            });
        }
Ejemplo n.º 18
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");
            });
        }
Ejemplo n.º 19
0
 public void TextInput(TextInput input)
 {
     var cellTag = new CellTag(input.Cell, _step);
     cellTag.WriteResults(_results, _context);
     _tag.Child(cellTag);
 }
Ejemplo n.º 20
0
 public void TextInput(TextInput input)
 {
     var cellTag = new CellTag(input.Cell, _step);
     cellTag.WritePreview(_context);
     _tag.Child(cellTag);
 }
Ejemplo n.º 21
0
        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);
            });
        }
Ejemplo n.º 22
0
        private void writeResultsRow(IStep step, ITestContext context)
        {
            AddBodyRow(row =>
            {
                _table.Cells.Each(cell =>
                {
                    StepResults results = context.ResultsFor(step);
                    var tag = new CellTag(cell, _step);
                    tag.WriteResults(results, context);

                    // Ditto this line of code
                    results.ForExceptionText(writeExceptionText);

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