public void ValidateField_ReturnsCorrectValidationStatus(string input, bool expected) { //arrange var validator = new HairColorValidator(); //act var actual = validator.FieldIsValid(input); //assert Assert.Equal(expected, actual); }
public bool Test_HairColorValidator(string value) { var validator = new HairColorValidator(); return(validator.Validate(value)); }