private void testbadvalue(int n, Object value) { TypeValidator v = Validator_object.Get(n); Assert.IsFalse(v.Validate(value)); Assert.IsFalse(validateValueOk(v, value)); }
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()); }
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()); }
public void constructor3() { Validator_object.Get(Validator.MAX_NDIMS + 1); }
public void constructor2() { Validator_object.Get(-1); }