示例#1
0
        public void reset_clears_exception()
        {
            var errors = new StepResults();

            errors.MarkFormatFailure("key1");

            errors.Clear();

            errors.IsInException("key1").ShouldBeFalse();
        }
示例#2
0
        public void mark_as_exception()
        {
            var errors = new StepResults();

            errors.MarkFormatFailure("key1");
            errors.MarkMissingValue("key2");

            errors.IsInException("key1").ShouldBeTrue();
            errors.IsInException("key2").ShouldBeTrue();
            errors.IsInException("key3").ShouldBeFalse();
        }
示例#3
0
        public void SetUp()
        {
            cell          = Cell.For <string>("name");
            cell.IsResult = true;
            step          = new Step().With("name:Jeremy");

            result = new StepResults();
            result.MarkFormatFailure("name");


            tag = new CellTag(cell, step);
            tag.WriteResults(result, new TestContext());
        }
示例#4
0
        public void reset_clears_exception()
        {
            var errors = new StepResults();
            errors.MarkFormatFailure("key1");

            errors.Clear();

            errors.IsInException("key1").ShouldBeFalse();
        }
示例#5
0
        public void mark_as_exception()
        {
            var errors = new StepResults();
            errors.MarkFormatFailure("key1");
            errors.MarkMissingValue("key2");

            errors.IsInException("key1").ShouldBeTrue();
            errors.IsInException("key2").ShouldBeTrue();
            errors.IsInException("key3").ShouldBeFalse();
        }
示例#6
0
        public void SetUp()
        {
            cell = Cell.For<string>("name");
            cell.IsResult = true;
            step = new Step().With("name:Jeremy");

            result = new StepResults();
            result.MarkFormatFailure("name");

            tag = new CellTag(cell, step);
            tag.WriteResults(result, new TestContext());
        }