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()); }
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(); }