public void undefineObjectPropertyTest() { defineObjectPropertyTest(); API parent = _api; data target = new data(parent); string obj_type = Constants.TestType; string prop_name = Constants.TestObjectPropertyName; //Check to make sure we've got just one from out setup var types = parent.data.getObjectType(obj_type); Assert.AreEqual(types.Count, 1); //Should have been dropped at this point. target.undefineObjectProperty(obj_type, prop_name); types = parent.data.getObjectType(obj_type); Assert.AreEqual(types.Count,0); }