public void ValidateField_ReturnsCorrectValidationStatus(string input, bool expected)
        {
            //arrange
            var validator = new HairColorValidator();

            //act
            var actual = validator.FieldIsValid(input);

            //assert
            Assert.Equal(expected, actual);
        }
Exemple #2
0
        public bool Test_HairColorValidator(string value)
        {
            var validator = new HairColorValidator();

            return(validator.Validate(value));
        }