Exemple #1
0
        private void testbadvalue(int n, Object value)
        {
            TypeValidator v = Validator_object.Get(n);

            Assert.IsFalse(v.Validate(value));
            Assert.IsFalse(validateValueOk(v, value));
        }
Exemple #2
0
        private void testelementvalidator(int n, int k, String descr, Type expectedClass)
        {
            TypeValidator v = (TypeValidator)Validator_object.Get(n).ElementValidator();

            Assert.AreEqual(k, v.GetNDims());
            Assert.AreSame(expectedClass, v.GetExpectedClass());
            Assert.AreEqual(descr, v.ToString());
        }
Exemple #3
0
        private void testconstructor(int n, String descr, Type expectedClass)
        {
            TypeValidator v = Validator_object.Get(n);

            Assert.AreEqual(n, v.GetNDims());
            Assert.AreSame(expectedClass, v.GetExpectedClass());
            Assert.AreEqual(descr, v.ToString());
        }
Exemple #4
0
 public void constructor3()
 {
     Validator_object.Get(Validator.MAX_NDIMS + 1);
 }
Exemple #5
0
 public void constructor2()
 {
     Validator_object.Get(-1);
 }