Example #1
0
        public override void Check(IValidateResult result, object instance)
        {
            instance.ThrowIfNullArgument(nameof(instance));
            result.ThrowIfNullArgument(nameof(result));

            _method.Invoke(instance, new object[] { result });
        }
Example #2
0
        public override void Check(IValidateResult result, object instance)
        {
            instance.ThrowIfNullArgument(nameof(instance));
            result.ThrowIfNullArgument(nameof(result));

            _method.Invoke(instance, new object[] { result });
        }
        public override void Check(IValidateResult result, object instance)
        {
            Assertion.IsNotNull(_pInfo, "Property info not set.");

            instance.ThrowIfNullArgument(nameof(instance));
            result.ThrowIfNullArgument(nameof(result));

            object val = _pInfo.GetValue(instance, null);

            DoCheck(result, instance, val);
        }