public void HistoryPresenter_Show_Test() { // Arrange _view.Expect(x => x.Show()); _view.Expect(x => x.BringToFront()); // Act _presenter = CreatePresenter(); _presenter.Show(); // Assert _view.VerifyAllExpectations(); }
public void HistoryPresenter_Show_FromMinimized_Test() { // Arrange _view.Expect(x => x.Show()); _view.Expect(x => x.WindowState).Return(FormWindowState.Minimized); _view.Expect(x => x.WindowState = FormWindowState.Normal); // Act _presenter = CreatePresenter(); _presenter.Show(); // Assert _view.VerifyAllExpectations(); }
public void ShowFromMinimizedTest() { // Arrange _view.Expect(x => x.Show()); _view.Expect(x => x.WindowState).Return(FormWindowState.Minimized); _view.Expect(x => x.WindowState = FormWindowState.Normal); // Act _presenter = CreatePresenter(); _presenter.Show(); // Assert _view.VerifyAllExpectations(); }