Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 4
0
 public void Init()
 {
     m_inMemoryCache = InMemoryFdoCache.CreateInMemoryFdoCache();
     m_inMemoryCache.InitializeLangProject();
 }