public void reset_clears_exception() { var errors = new StepResults(); errors.MarkFormatFailure("key1"); errors.Clear(); errors.IsInException("key1").ShouldBeFalse(); }
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(); }
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()); }
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()); }