WriteResults() 공개 메소드

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

                cellTag.WriteResults(_results, _context);
                _tag.Append(cellTag);
            }
예제 #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 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());
        }
예제 #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
        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);
            });
        }
예제 #6
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);
            });
        }
예제 #7
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());
        }
예제 #8
0
 public void TextInput(TextInput input)
 {
     var cellTag = new CellTag(input.Cell, _step);
     cellTag.WriteResults(_results, _context);
     _tag.Child(cellTag);
 }
예제 #9
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);
                });
            });
        }