public void VerifyNotValidateIEnumerableProperties()
        {
            var rng = new OwnCollectionOfBasicElementIEnumerable()
            {
            };
            var v = new Core.Validator();

            var res = v.ValidateObject(rng, ValidationFlags.RecursiveValidation);

            Assert.IsTrue(res);
        }
        public void VerifyNotValidateIEnumerableWhenLambdaConditionIsUsed()
        {
            var rng = new OwnCollectionOfBasicElementIEnumerable(23)
            {
            };
            var v = new Core.Validator();

            v.AddRule(Rule.For <OwnCollectionOfBasicElementIEnumerable>(l => l.SearchUnits)
                      .Custom <IEnumerable <Int32> >(sl =>
                                                     sl.Count() > 0).Message("error"));
            var res = v.ValidateObject(rng, ValidationFlags.RecursiveValidation);

            Assert.IsTrue(res);
        }
 public void VerifyNotValidateIEnumerableWhenLambdaConditionIsUsed()
 {
     var rng = new OwnCollectionOfBasicElementIEnumerable(23) { };
     var v = new Core.Validator();
     v.AddRule(Rule.For<OwnCollectionOfBasicElementIEnumerable>(l => l.SearchUnits)
          .Custom<IEnumerable<Int32>>(sl =>
                   sl.Count() > 0).Message("error"));
     var res = v.ValidateObject(rng, ValidationFlags.RecursiveValidation);
     Assert.IsTrue(res);
 }
        public void VerifyNotValidateIEnumerableProperties()
        {
            var rng = new OwnCollectionOfBasicElementIEnumerable() { };
            var v = new Core.Validator();

            var res = v.ValidateObject(rng, ValidationFlags.RecursiveValidation);
            Assert.IsTrue(res);
        }