public void NoAttributes()
 {
     Assert.That(_propertyWithoutAttributeReflector.GetAddingPropertyValidators().Any(), Is.False);
     Assert.That(_propertyWithoutAttributeReflector.GetHardConstraintPropertyValidators().Any(), Is.False);
     Assert.That(_propertyWithoutAttributeReflector.GetRemovingPropertyRegistrations().Any(), Is.False);
     Assert.That(_propertyWithoutAttributeReflector.GetMetaValidationRules().Any(), Is.False);
 }
        public void GetMetaValidationRules_NullableStringPropertyAttribute()
        {
            var result = _propertyWithNullableStringPropertyAttributeReflector.GetMetaValidationRules().ToArray();

            Assert.That(result.Count(), Is.EqualTo(1));
            Assert.That(result[0], Is.TypeOf(typeof(RemotionMaxLengthMetaValidationRule)));
            Assert.That(((RemotionMaxLengthMetaValidationRule)result[0]).MaxLength, Is.EqualTo(10));
        }
        public void GetMetaValidationRules_MandatoryAttribute()
        {
            var result = _propertyWithMandatoryAttributeReflector.GetMetaValidationRules().ToArray();

            Assert.That(result.Any(), Is.False);
        }