/// <summary>
        /// Removes the writing systems.
        /// </summary>
        public override void TestTearDown()
        {
            m_dlg.Dispose();
            m_dlg = null;

            base.TestTearDown();

            foreach (IWritingSystem ws in Cache.ServiceLocator.WritingSystemManager.LocalWritingSystems)
            {
                if (!m_origLocalWss.Contains(ws))
                {
                    ws.MarkedForDeletion = true;
                }
            }

            foreach (IWritingSystem ws in Cache.ServiceLocator.WritingSystemManager.GlobalWritingSystems)
            {
                if (!m_origGlobalWss.Contains(ws))
                {
                    ws.MarkedForDeletion = true;
                }
            }

            Cache.ServiceLocator.WritingSystemManager.Save();
        }
Esempio n. 2
0
        /// <summary>
        /// Removes the writing systems.
        /// </summary>
        public override void TestTearDown()
        {
            m_dlg.Dispose();
            m_dlg = null;

            base.TestTearDown();
        }
Esempio n. 3
0
 public void Teardown()
 {
     if (m_dlgWsProps != null)
     {
         m_dlgWsProps.Dispose();
         m_dlgWsProps = null;
     }
     m_inMemoryCache.Dispose();
 }