Exemple #1
0
        public void ClassicTestOk()
        {
            var view = new Mock <IMainView>(MockBehavior.Strict);

            view.Setup(v => v.Close());

            IMainPresenter subject = new MainPresenterImpl(view.Object);

            view.Raise(v => v.Ok += null, EventArgs.Empty);

            view.VerifyAll();
        }
Exemple #2
0
        public void ClassicTestShowDialog()
        {
            var view = new Mock <IMainView>(MockBehavior.Strict);

            view.Setup(v => v.ShowDialog());

            IMainPresenter subject = new MainPresenterImpl(view.Object);

            subject.ShowDialog();

            view.VerifyAll();
        }