public void reset_clears_exception_text_and_has_errors() { var errors = new StepResults(); errors.MarkMissingValue("a"); errors.Clear(); errors.HasErrors().ShouldBeFalse(); errors.ExceptionText.ShouldBeEmpty(); errors.CaptureException(new NotImplementedException().ToString()); errors.Clear(); errors.HasErrors().ShouldBeFalse(); errors.ExceptionText.ShouldBeEmpty(); }
public void reset_clears_failure_keys() { var errors = new StepResults(); errors.MarkFailure("key1"); errors.Clear(); errors.IsInException("key1").ShouldBeFalse(); }
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(); }