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