public void Validation_Validateable_ObjectPass()
        {
            var b = new ValidatableObject();

            b.Pass = true;
            var r       = new List <ValidationResult>();
            var isvalid = _validator(b, new ValidationContext(b), r, true);

            Assert.AreEqual(b.Pass, isvalid);
        }
        public void Validation_Validateable_ObjectFail()
        {
            var obj = new ValidatableObject();

            obj.Pass = false;
            var result  = new List <ValidationResult>();
            var isvalid = _validator(obj, new ValidationContext(obj), result, true);

            Assert.AreEqual(obj.Pass, isvalid);
        }