public void IsValidGenderTest_Fail() { var isReq = new GenderValidator(); var result = isReq.IsValid("x", "Gender"); Assert.IsFalse(result); }
public void IsValidGenderTest_HappyPath() { var validator = new GenderValidator(); validator.CompareList = "M,F,Male,Female,sire,dam,heifer,steer".Split(',').ToList(); var result = validator.IsValid("m", "Gender"); Assert.IsTrue(result); }