コード例 #1
0
        public override void IsValid_ArgumentChecks()
        {
            base.IsValid_ArgumentChecks();
            var compareOperator_noProperty = new CompareOperatorAttribute("noProperty");

            Assert.IsNotNull(compareOperator_noProperty.GetValidationResult(1, _context), "Null other property");
        }
コード例 #2
0
 protected override object PerformCheck(object value, ValidationContext context)
 {
     return(_operator.GetValidationResult(value, context));
 }