Exemple #1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// If a test overrides this, it should call this base implementation.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public override void TestSetup()
        {
            base.TestSetup();

            m_notifiee = new Notifiee();
            m_sda.AddNotification(m_notifiee);
        }
Exemple #2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// If a test overrides this, it should call this base implementation.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public override void TestTearDown()
        {
            m_sda.RemoveNotification(m_notifiee);
            m_notifiee = null;

            while (m_actionHandler.CanUndo())
            {
                m_actionHandler.Undo();
            }
            m_actionHandler.Commit();

            base.TestTearDown();
        }