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."); }
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."); }