Exemple #1
0
        protected override bool EqualsRule(ClassRule <T> rule)
        {
            var genericClassRule = rule as GenericClassRule <T>;

            return(genericClassRule == null ?
                   false :
                   genericClassRule.assertFunc.Equals(assertFunc));
        }
Exemple #2
0
        protected override bool EqualsRule(ClassRule <T> rule)
        {
            var propertyMustBeLessThanOtherRule = rule as PropertyMustBeLessThanOtherRule <T>;

            return(propertyMustBeLessThanOtherRule == null ?
                   false :
                   propertyMustBeLessThanOtherRule.propertyName.Equals(propertyName) &&
                   propertyMustBeLessThanOtherRule.otherPropertyName.Equals(otherPropertyName));
        }
Exemple #3
0
 protected abstract bool EqualsRule(ClassRule <T> rule);
Exemple #4
0
 protected override bool EqualsRule(ClassRule <T> rule)
 {
     return(rule is PropertyMustMatchRule <T>);
 }