public void Validate_ReturnsTrueOnValidTimeString(string validString) { var cut = new StringToTimeValidationRule(); var result = cut.Validate(validString, null); result.IsValid.Should().BeTrue(); }
public void Validate_ReturnsFalseOnInvalidTimeString() { const string invalidTime = "#äö+üp"; var cut = new StringToTimeValidationRule(); var result = cut.Validate(invalidTime, null); result.IsValid.Should().BeFalse(); }