Beispiel #1
0
        void ITestStream.StartParagraph(Paragraph paragraph, IStep step)
        {
            _paragraphResults = _context.ResultsFor(step);
            _paragraphResults.MoveFirst();

            var tag = new ParagraphTag(paragraph, step);

            _document.Push(tag);
        }
Beispiel #2
0
        public void capture_error_on_the_second_frame()
        {
            var errors = new StepResults();
            errors.MoveFrame();
            errors.CaptureException("anything");

            errors.MoveFirst();
            errors.HasErrors().ShouldBeFalse();

            errors.MoveFrame();
            errors.HasErrors().ShouldBeTrue();
        }
Beispiel #3
0
        public void capture_error_on_the_second_frame()
        {
            var errors = new StepResults();

            errors.MoveFrame();
            errors.CaptureException("anything");

            errors.MoveFirst();
            errors.HasErrors().ShouldBeFalse();

            errors.MoveFrame();
            errors.HasErrors().ShouldBeTrue();
        }
Beispiel #4
0
        public void clear_will_clear_out_the_frame_errors()
        {
            var errors = new StepResults();

            errors.MoveFrame();
            errors.MoveFrame();
            errors.CaptureException("anything");

            errors.Clear();

            errors.MoveFirst();
            errors.MoveFrame();
            errors.MoveFrame();
            errors.HasErrors().ShouldBeFalse();
        }
        void ITestStream.StartParagraph(Paragraph paragraph, IStep step)
        {
            _paragraphResults = _context.ResultsFor(step);
            _paragraphResults.MoveFirst();

            var tag = new ParagraphTag(paragraph, step);
            _document.Push(tag);
        }
Beispiel #6
0
        public void clear_will_clear_out_the_frame_errors()
        {
            var errors = new StepResults();
            errors.MoveFrame();
            errors.MoveFrame();
            errors.CaptureException("anything");

            errors.Clear();

            errors.MoveFirst();
            errors.MoveFrame();
            errors.MoveFrame();
            errors.HasErrors().ShouldBeFalse();
        }