public void RemoveView()
        {
            controller.AttachView(this);
            controller.DetachView(this);
            controller.ExecuteSplit();

            Assert.IsFalse(wasSplitCalled, "Our view should have been detachedfrom the controller");
        }
 protected void setup_attachMockViewToController(DynamicMock viewMock, DotNetRegexEngine controller)
 {
     controller.AttachView((IRegexView)viewMock.MockInstance);
 }
 protected void setup_initControllerWithViewInputAndPattern(IRegexView view, string inputText, string pattern)
 {
     m_controller.AttachView(view);
     m_controller.InputText = inputText;
     m_controller.Pattern   = pattern;
 }