package com.adaptionsoft.games.uglytrivia;

import org.junit.Test;

import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;

public class GameTest {
    @Test
    public void wrongAnswerShouldSendPlayerToPenaltyBox() {
        Player lonelyTom = new Player("Lonely Tom");
        Game game = createGameWithSinglePlayer(lonelyTom);

        game.wrongAnswer();

        assertTrue("Player should be in penalty box", lonelyTom.isInPenaltyBox());
    }

    @Test
    public void wrongAnswerShouldNotGetACoin(){
        Player player = mock(Player.class);
        Game game = createGameWithSinglePlayer(player);

        game.wrongAnswer();

        verify(player, never()).answeredCorrect();
    }

    private Game createGameWithSinglePlayer(Player player) {
        Players players = new Players();
        players.add(player);
        return new Game(players, null);
    }


           /*

        turn is over

        test output

         */





}

@@ -142,95 +142,9 @@
 ito.
-mock;%0Aimport static org.mockito.Mockito.never;%0Aimport static org.mockito.Mockito.verify
+*
 ;%0A%0Ap
@@ -710,24 +710,335 @@
 t();%0A    %7D%0A%0A
+    @Test%0A    public void wrongAnswerShouldEndTurn()%7B%0A        Players players = mock(Players.class);%0A        when(players.getCurrentPlayer()).thenReturn(new Player(%22unimportant%22));%0A%0A        Game game = new Game(players, null);%0A%0A        game.wrongAnswer();%0A%0A        verify(players).changeCurrentPlayer();%0A    %7D%0A%0A
     private 

Wrong answer should end turn