コード例 #1
0
 public void TestCustomValueExtractorWrong()
 {
     var obj = new FullCustomValueExtractor1ClassTest();
     obj.field1 = 10;
     obj.field2 = 300;
     var v = new Core.Validator();
     ValidationResult res = v.ValidateObject(obj);
     Assert.IsFalse(res, "Object does not validate well");
 }
コード例 #2
0
        public void TestCustomValueExtractorWrong()
        {
            var obj = new FullCustomValueExtractor1ClassTest();

            obj.field1 = 10;
            obj.field2 = 300;
            var v = new Core.Validator();
            ValidationResult res = v.ValidateObject(obj);

            Assert.IsFalse(res, "Object does not validate well");
        }