public void SetUp() { CheckDisposed(); if (m_cache != null) m_cache.Dispose(); m_cache = InMemoryFdoCache.CreateInMemoryFdoCache(); m_cache.InitializeWritingSystemEncodings(); ILgWritingSystemFactory lgwsf = m_cache.Cache.LanguageWritingSystemFactoryAccessor; m_ws = lgwsf.get_EngineOrNull(InMemoryFdoCache.s_wsHvos.En); }
public void SetUp() { CheckDisposed(); if (m_mock != null) m_mock.Dispose(); m_mock = InMemoryFdoCache.CreateInMemoryFdoCache(); m_mock.InitializeWritingSystemEncodings(); m_mock.InitializeLangProject(); m_lp = m_mock.Cache.LangProject; }
public void Init() { StringUtils.InitIcuDataDir(); m_inMemoryCache = InMemoryFdoCache.CreateInMemoryFdoCache(); m_inMemoryCache.InitializeLangProject(); m_inMemoryCache.Cache.LanguageWritingSystemFactoryAccessor.BypassInstall = true; m_inMemoryCache.InitializeWritingSystemEncodings(); m_dlgWsProps = new DummyWritingSystemPropertiesDialog(m_inMemoryCache.Cache); // "show" the dialog box (the actually gui will never be loaded) // When in test mode the dialog will not call its base ShowDialog m_dlgWsProps.CallShowDialog(); }
public void Init() { m_inMemoryCache = InMemoryFdoCache.CreateInMemoryFdoCache(); m_inMemoryCache.InitializeLangProject(); m_inMemoryCache.Cache.LanguageWritingSystemFactoryAccessor.BypassInstall = true; m_inMemoryCache.InitializeWritingSystemEncodings(); int hvoWsNew = SimulateInstallLanguage("xkal__IPA", "Kalaba (IPA)", "Arial", "Times New Roman", "Charis SIL"); m_hvoWsKalabaIpa = hvoWsNew; CreateTempLanguageDefinitionFileFromWs(InMemoryFdoCache.s_wsHvos.XKal); CreateTempLanguageDefinitionFileFromWs(m_hvoWsKalabaIpa); CreateTempLanguageDefinitionFileFromNewWs("xwsd", "WSDialog", "Arial", "Courier New", "Charis SIL"); CreateTempLanguageDefinitionFileFromNewWs("xwsd__IPA", "WSDialog (IPA)", "Doulos SIL", "Doulos SIL", "Doulos SIL"); DummyWritingSystemPropertiesDialog.CopyLangDefToTempLanguageDir("xtst", Path.Combine(DirectoryFinder.FwSourceDirectory, @"FwCoreDlgs\FwCoreDlgsTests\xtst.xml")); m_dlg = new DummyWritingSystemPropertiesDialog(m_inMemoryCache.Cache); }