package is.ru.tictactoe;

import org.junit.Test;
import static org.junit.Assert.*;

public class PlayerTest {

  @Test
  public void testConstructor()
  {
    Symbol circle = Symbol.CIRCLE;
    Player player = new Player("Kolbeinn Ari", circle);
    assertEquals("Kolbeinn Ari", player.getName());
    assertEquals(circle, player.getSymbol());
    assertEquals(0, player.getScore());
  }

  @Test
  public void testIncrementScore()
  {
    Player player = new Player("Kolbeinn Ari", Symbol.CIRCLE);
    player.incrementScore();
    assertEquals(1, player.getScore());
  }
  @Test
  public void testIncrementScore2(){
    Player player1 = new Player("Steinar", Symbol.CROSS);
    Player player2 = new Player("Kolbeinn Ari", Symbol.CIRCLE);
    TicTacToe game = new TicTacToe(player1, player2); 
    game.makeMove(1)
    game.makeMove(2)
    game.makeMove(4)
    game.makeMove(3)
    game.makeMove(7)
    String winner = game.checkWinner();
    if(winner == player1.getSymbol){
      assertEquals(1, player1.getScore());
    }
    if(winner == player2.getSymbol){
      assertEquals(1, player2.getScore());
    }
  }
}

@@ -785,17 +785,16 @@
 layer2);
- 
 %0A    gam
@@ -806,16 +806,17 @@
 eMove(1)
+;
 %0A    gam
@@ -828,16 +828,17 @@
 eMove(2)
+;
 %0A    gam
@@ -850,16 +850,17 @@
 eMove(4)
+;
 %0A    gam
@@ -872,16 +872,17 @@
 eMove(3)
+;
 %0A    gam
@@ -894,16 +894,17 @@
 eMove(7)
+;
 %0A    Str
@@ -944,175 +944,44 @@
     
-if(winner == player1.getSymbol)%7B%0A      assertEquals(1, player1.getScore());%0A    %7D%0A    if(winner == player2.getSymbol)%7B%0A      assertEquals(1, player2.getScore());%0A    %7D
+assertEquals(1, player1.getScore());
 %0A  %7D

fix test