Пример #1
0
        public void show_results_if_the_correct_test()
        {
            ThePresenter.Expect(x => x.ChangeModeTo(Mode.Results));

            ThePresenter.Handle(new TestRunEvent(theTest, TestState.NotQueued)
            {
                Completed = true
            });

            MockFor <ITestView>().Expect(x => x.MarkNotExecuting());

            ThePresenter.AssertWasCalled(x => x.ChangeModeTo(Mode.Results));
        }
Пример #2
0
 public void the_view_should_be_put_into_the_results_mode()
 {
     ThePresenter.AssertWasCalled(x => x.ChangeModeTo(Mode.Results));
 }