예제 #1
0
 public void HistoryPresenter_Show_Test()
 {
     // Arrange
     _view.Expect(x => x.Show());
     _view.Expect(x => x.BringToFront());
     // Act
     _presenter = CreatePresenter();
     _presenter.Show();
     // Assert
     _view.VerifyAllExpectations();
 }
예제 #2
0
 public void HistoryPresenter_Show_Test()
 {
    // Arrange
    _view.Expect(x => x.Show());
    _view.Expect(x => x.BringToFront());
    // Act
    _presenter = CreatePresenter();
    _presenter.Show();
    // Assert
    _view.VerifyAllExpectations();
 }
예제 #3
0
 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();
 }
예제 #4
0
 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();
 }