public void Int64PropTest() { // ClassF->Int64Prop5:GenDate // First, set up class id. const int hvo = 1; var clid = SilDataAccess.MetaDataCache.GetClassId("ClassF"); SilDataAccess.SetInt(hvo, (int)CmObjectFields.kflidCmObject_Class, clid); const long dob = long.MinValue; var tag = SilDataAccess.MetaDataCache.GetFieldId("ClassF", "Int64Prop5", false); SilDataAccess.SetInt64(hvo, tag, dob); var dob2 = SilDataAccess.get_Int64Prop(hvo, tag); Assert.AreEqual(dob, dob2, "Wrong DOB in cache."); }
public void Int64PropTest() { CheckDisposed(); // CmPerson->DateOfBirth:GenDate // First, set up class id. int hvo = 1; uint clid = SilDataAccess.MetaDataCache.GetClassId("CmPerson"); SilDataAccess.SetInt(hvo, (int)CmObjectFields.kflidCmObject_Class, (int)clid); long dob = long.MinValue; // Use 'Adam' :-) int tag = (int)SilDataAccess.MetaDataCache.GetFieldId("CmPerson", "DateOfBirth", false); SilDataAccess.SetInt64(hvo, tag, dob); long dob2 = SilDataAccess.get_Int64Prop(hvo, tag); Assert.AreEqual(dob, dob2, "Wrong DOB in cache."); }