private void testbadvalue(int n, Object value)
        {
            TypeValidator v = Validator_StructValue.Get(abc, n);

            Assert.IsFalse(v.Validate(value));
            Assert.IsFalse(validateValueOk(v, value));
        }
        private void testelementvalidator(int n, String descr, Type expectedClass)
        {
            Validator_StructValue v = (Validator_StructValue)Validator_StructValue.Get(abc, n).ElementValidator();

            Assert.AreEqual(n - 1, v.GetNDims());
            Assert.AreSame(expectedClass, v.GetExpectedClass());
            Assert.AreEqual(descr, v.ToString());
            Assert.AreEqual(abc, v.GetXType());
        }
        private void testconstructor(int n, String descr, Type expectedClass)
        {
            Validator_StructValue v = Validator_StructValue.Get(abc, n);

            Assert.AreEqual(n, v.GetNDims());
            Assert.AreSame(expectedClass, v.GetExpectedClass());
            Assert.AreEqual(descr, v.ToString());
            Assert.AreEqual(abc, v.GetXType());
        }
 public void constructor3()
 {
     Validator_StructValue.Get(abc, Validator.MAX_NDIMS + 1);
 }
 public void constructor2()
 {
     Validator_StructValue.Get(abc, -1);
 }
 public void elementvalidator2()
 {
     Validator_StructValue.Get(abc, 0).ElementValidator();
 }