コード例 #1
0
        public void update_the_screen_if_the_view_is_in_results_mode()
        {
            ThePresenter.SetMode(Mode.Preview);

            ClassUnderTest.HandleMessage(new ClearResultsMessage());

            MockFor <ITestHeaderViewModel>().AssertWasCalled(x => x.Update());
        }
コード例 #2
0
        public void change_to_preview_mode_if_the_view_is_in_results_mode()
        {
            ThePresenter.SetMode(Mode.Results);
            ClassUnderTest.Expect(x => x.ChangeModeTo(Mode.Preview));

            ClassUnderTest.HandleMessage(new ClearResultsMessage());

            ClassUnderTest.VerifyAllExpectations();
        }