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()); }
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()); }