Example #1
0
		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();
		}
Example #3
0
		public override void Initialize()
		{
			CheckDisposed();

			Debug.Assert(m_inMemoryCache == null, "m_inMemoryCache is not null, but should be.");
			//if (m_inMemoryCache != null)
			//	m_inMemoryCache.Dispose();
			m_inMemoryCache = CreateInMemoryFdoCache(this);
			m_inMemoryCache.InitializeLangProject();
			m_inMemoryCache.InitializeActionHandler();
			InitializeCache();

			base.Initialize();

			CreateTestData();
		}
		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);
		}
		public void Init()
		{
			m_inMemoryCache = InMemoryFdoCache.CreateInMemoryFdoCache();
			m_inMemoryCache.InitializeLangProject();
		}