public void ValidationTest_Match() { PersonWithInverted person = new PersonWithInverted(); var validateResult = person.Validate(); Assert.AreEqual(1, validateResult.Count()); Assert.AreEqual(Person.CoupleNameErrorMessage, validateResult.Single().ErrorMessage); }
public void ValidationTest_NotMatch() { PersonWithInverted person = new PersonWithInverted() { IsNotCouple = true }; var validateResult = person.Validate(); Assert.IsFalse(validateResult.Any()); }