Пример #1
0
        public void InsertSection_DisabledInBookTitle()
        {
            m_mainWnd.m_mockedEditingHelper.Stub(e => e.InBookTitle).Return(true);

            Assert.IsTrue(m_mainWnd.OnUpdateInsertSection(m_dummyItemProps));
            Assert.IsFalse(m_dummyItemProps.Enabled, "Insert Section should be disabled in book title.");
        }
Пример #2
0
        public void InsertSection_DisabledInBookTitle()
        {
            CheckDisposed();

            m_mainWnd.m_mockedEditingHelper.SetupResult("InBookTitle", true);

            Assert.IsTrue(m_mainWnd.OnUpdateInsertSection(m_dummyItemProps));
            Assert.IsFalse(m_dummyItemProps.Enabled, "Insert Section should be disabled in book title.");
        }