Ejemplo n.º 1
0
    public void When_Right_Answer_Shows_Positive_Feedback()
    {
        //Given
        TriviaGameView  triviaGameView  = Substitute.For <TriviaGameView>();
        TriviaPresenter triviaPresenter = new TriviaPresenter(triviaGameView);

        //When
        triviaPresenter.SetAnswer("ok");

        //Then
        triviaGameView.Received(1).ShowPositiveFeedBack();
    }
Ejemplo n.º 2
0
 private void ThenShowsPositiveFeedback()
 {
     _view.Received(1).ShowPositiveFeedback();
 }