Exemplo n.º 1
0
        public override void Exit()
        {
            CheckDisposed();

            m_basicView.Dispose();
            m_basicView = null;

            base.Exit();
        }
Exemplo n.º 2
0
        /// -----------------------------------------------------------------------------------
        /// <summary>
        /// Close the draft view
        /// </summary>
        /// -----------------------------------------------------------------------------------
        public override void TestTearDown()
        {
            m_basicView.Dispose();
            m_basicView = null;

            base.TestTearDown();
        }
        public virtual void CleanUp()
        {
            CheckDisposed();

            UndoResult ures = 0;

            while (m_fdoCache.CanUndo)
            {
                m_fdoCache.Undo(out ures);
                if (ures == UndoResult.kuresFailed || ures == UndoResult.kuresError)
                {
                    Assert.Fail("ures should not be == " + ures.ToString());
                }
            }
            // Some tests are not at all happy to have m_basicView be disposed befroe the undoing.
            m_basicView.Dispose();
            m_basicView = null;
            m_fdoCache.Dispose();
            m_fdoCache = null;
        }
Exemplo n.º 4
0
        public override void  TestTearDown()
        {
            // FdoTestBase::TestTeardown uses m_actionHandler which seems to
            // require its associated RootBox to have a valid root site.
            // This m_basicView needs to be disposed after FdoTestBase::TestTeardown is called.
            base.TestTearDown();

            if (m_basicView != null)
            {
                m_basicView.Dispose();
            }
            m_basicView = null;
        }