예제 #1
0
        private void TestElementValidator(int n, String descr, Type expectedClass)
        {
            Validator_boolean v = (Validator_boolean)Validator_boolean.Get(n).ElementValidator();

            Assert.AreEqual(n - 1, v.GetNDims());
            Assert.AreSame(expectedClass, v.GetExpectedClass());
            Assert.AreEqual(descr, v.ToString());
        }
예제 #2
0
        private void TestConstructor(int n, string descr, Type expectedClass)
        {
            Validator_boolean v = Validator_boolean.Get(n);

            Assert.AreEqual(n, v.GetNDims());
            Assert.AreSame(expectedClass, v.GetExpectedClass());
            Assert.AreEqual(descr, v.ToString());
        }