package com.adaptionsoft.games.uglytrivia;

import org.junit.Test;

import static org.junit.Assert.fail;

public class GameCorrectAnswerTest {

    @Test
    public void placeMeUnderTest(){
        fail("Place Game.correctAnswer under test");
    }
}

@@ -37,16 +37,41 @@
 rivia;%0A%0A
+import org.junit.Ignore;%0A
 import o
@@ -108,25 +108,25 @@
 org.
-junit.Assert.fail
+mockito.Mockito.*
 ;%0A%0Ap
@@ -192,26 +192,38 @@
 oid 
-placeMeUnderTest
+correctAnswerShouldGetACoin
 ()
+ 
 %7B%0A  
@@ -232,50 +232,359 @@
     
-fail(%22Place Game.correctAnswer under test%22
+Player player = mock(Player.class);%0A        Game game = createGameWithSinglePlayer(player);%0A%0A        game.correctAnswer();%0A%0A        verify(player, times(1)).answeredCorrect();%0A    %7D%0A%0A    private Game createGameWithSinglePlayer(Player player) %7B%0A        Players players = new Players();%0A        players.add(player);%0A        return new Game(players, null
 );%0A 
@@ -589,9 +589,8 @@
 %0A    %7D%0A%7D
-%0A

Test that correct answer gets a coin