public void Instance_with_FirstName_equal_to_LastName_is_valid()
 {
     var rule = classMetadata.Rules.OfType<PropertyMustMatchRule<Person>>().Last();
     var person = new Person { FirstName = "foo", LastName = "foo" };
     Assert.True(rule.IsValid(person));
 }
 public void Instance_with_FirstName_different_from_LastName_is_invalid()
 {
     var rule = classMetadata.Rules.OfType<PropertyMustMatchRule<Person>>().Last();
     var person = new Person { FirstName = "foo", LastName = "bar" };
     Assert.False(rule.IsValid(person));
 }