예제 #1
0
        public void Validate_ReturnsTrueOnValidTimeString(string validString)
        {
            var cut = new StringToTimeValidationRule();

            var result = cut.Validate(validString, null);

            result.IsValid.Should().BeTrue();
        }
예제 #2
0
        public void Validate_ReturnsFalseOnInvalidTimeString()
        {
            const string invalidTime = "#äö+üp";
            var          cut         = new StringToTimeValidationRule();

            var result = cut.Validate(invalidTime, null);

            result.IsValid.Should().BeFalse();
        }