public void LoadOwningAtomic() { CheckDisposed(); int[] hvos = GetHvosForFirstNObjectsOfClass(m_fdoCache.LangProject.ResearchNotebookOA.RecordsOC.HvoArray, RnEvent.kclsidRnEvent, 3); CmObject.LoadOwningAtomicData(m_fdoCache, CmObject.GetTypeFromFWClassID(m_fdoCache, RnEvent.kclsidRnEvent), hvos, -1); //first one should have a description; test that it was loaded Assert.IsTrue(m_fdoCache.GetObjProperty(hvos[0], (int)RnEvent.RnEventTags.kflidDescription) != 0); // test the difference in time it takes to load the atomic toning properties of //language project 100 times, using the old method vs. the new. // LangProject lp = new LangProject(m_fdoCache, 1); const int kRepetitions = 1; int[] hvoLP = { 1 }; for (int i = 0; i < kRepetitions; i++) { CmObject.LoadOwningAtomicData(m_fdoCache, CmObject.GetTypeFromFWClassID(m_fdoCache, RnEvent.kclsidRnEvent), hvos, -1); } }