public void FormatApplyStyle_EnabledWhenCurrentSelection()
        {
            SelectionHelper mockedSelectionHelper = MockRepository.GenerateMock <SelectionHelper>();
            IVwSelection    mockedSelection       = MockRepository.GenerateMock <IVwSelection>();

            mockedSelection.Expect(sel => sel.IsEditable).Return(true);
            mockedSelection.Stub(sel => sel.CanFormatChar).Return(true);
            mockedSelection.Stub(sel => sel.CanFormatPara).Return(true);
            mockedSelectionHelper.Expect(sh => sh.Selection).Return(mockedSelection);
            m_mainWnd.m_mockedEditingHelper.Expect(ed => ed.CurrentSelection).Return(mockedSelectionHelper);

            Assert.IsTrue(m_mainWnd.OnUpdateFormatApplyStyle(m_itemProps));
            Assert.IsTrue(m_itemProps.Enabled);
            mockedSelectionHelper.VerifyAllExpectations();
            mockedSelection.VerifyAllExpectations();
            m_mainWnd.m_mockedEditingHelper.VerifyAllExpectations();
        }