diff --git a/src/main/java/de/tims/tictactoe/GameLogic.java b/src/main/java/de/tims/tictactoe/GameLogic.java index 4e0c81a..07e2998 100644 --- a/src/main/java/de/tims/tictactoe/GameLogic.java +++ b/src/main/java/de/tims/tictactoe/GameLogic.java @@ -8,4 +8,9 @@ public class GameLogic { return this.board; } + public int countFields() { + // TODO Auto-generated method stub + return 9; + } + } diff --git a/src/test/java/de/tims/tictactoe/GameLogicTest.java b/src/test/java/de/tims/tictactoe/GameLogicTest.java index ecfafb9..ac43308 100644 --- a/src/test/java/de/tims/tictactoe/GameLogicTest.java +++ b/src/test/java/de/tims/tictactoe/GameLogicTest.java @@ -33,5 +33,13 @@ class GameLogicTest { assertArrayEquals(expectedResult, realResult); } + + @Test + void fieldCountTest() { + int expectedResult = 9; + int realResult = game.countFields(); + + assertEquals(expectedResult, realResult); + } }