public void mark_as_failure() { var errors = new StepResults(); errors.MarkFailure("key1"); errors.IsFailure("key1").ShouldBeTrue(); errors.IsFailure("key2").ShouldBeFalse(); }
public void reset_clears_failure_keys() { var errors = new StepResults(); errors.MarkFailure("key1"); errors.Clear(); errors.IsInException("key1").ShouldBeFalse(); }
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()); }
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()); }