Inheritance: NHibernate.Validator.Constraints.EmbeddedRuleArgsAttribute, IRuleArgs, IValidator, IPropertyConstraint
        public void IsValid()
        {
            var v = new DecimalMinAttribute();
            Assert.IsTrue(v.IsValid(0, null));
            Assert.IsTrue(v.IsValid(1, null));

            v= new DecimalMinAttribute(10.1456m);
            Assert.IsTrue(v.IsValid(10.1456m, null));
            Assert.IsTrue(v.IsValid(10.1457m, null));
            Assert.IsTrue(v.IsValid(10.1456m.ToString(), null));
            Assert.IsTrue(v.IsValid(10.145600000001f.ToString(), null));
            Assert.IsTrue(v.IsValid(10.1456f, null));
            Assert.IsTrue(v.IsValid(int.MaxValue, null));
            Assert.IsTrue(v.IsValid(long.MaxValue, null));
            Assert.IsTrue(v.IsValid(decimal.MaxValue, null));
            Assert.IsTrue(v.IsValid(Int64.MaxValue, null));

            Assert.IsFalse(v.IsValid(10.1455m, null));
            Assert.IsFalse(v.IsValid(10.1455m.ToString(), null));
            Assert.IsFalse(v.IsValid(10.1455f.ToString(), null));
            Assert.IsFalse(v.IsValid(10.1455f, null));
            Assert.IsFalse(v.IsValid(int.MinValue, null));
            Assert.IsFalse(v.IsValid(decimal.MinValue, null));
            Assert.IsFalse(v.IsValid(long.MinValue, null));
        }
        private static Attribute ConvertToDecimalMin(XmlNhvmRuleConverterArgs rule)
        {
            NhvmDecimalmin minRule = (NhvmDecimalmin)rule.schemaRule;
            decimal value = decimal.MinValue;

            if (minRule.valueSpecified)
                value = minRule.value;

            log.Info(string.Format("Converting to DecimalMin attribute with value {0}", value));
            DecimalMinAttribute thisAttribute = new DecimalMinAttribute();
            thisAttribute.Value = value;

            if (minRule.message != null)
            {
                thisAttribute.Message = minRule.message;
            }
            AssignTagsFromString(thisAttribute, minRule.tags);
            return thisAttribute;
        }