public void Split_SplitEventIsPassedWith2SplitResultsOnEmptyValues() { DynamicMock viewMock = setup_createEmptyViewMock(); SplitArgsConstraint expectedArgs = new SplitArgsConstraint(); expectedArgs.ArrayCount = 2; viewMock.Expect("OnSplit", expectedArgs); setup_attachMockViewToController(viewMock, m_controller); m_controller.ExecuteSplit(); viewMock.Verify(); }
public void Split_SplitEventIsPassedWith3SplitResults() { DynamicMock viewMock = setup_createEmptyViewMock(); SplitArgsConstraint expectedArgs = new SplitArgsConstraint(); expectedArgs.ArrayCount = 3; viewMock.Expect("OnSplit", expectedArgs); setup_attachMockViewToController(viewMock, m_controller); m_controller.Pattern = ","; m_controller.InputText = "a,b,c"; m_controller.ExecuteSplit(); viewMock.Verify(); }