public void TestMoveCanBeMadeToValidColumn() { var game = new Game(); var board = new BoardAPI(10, 8); var actualResult = board.IsMoveAllowed(game.Cells, 1) && board.IsMoveAllowed(game.Cells, Game.NUMBER_OF_COLUMNS - 1); Assert.IsTrue(actualResult); }
public void TestMoveCannotBeMadeToInvalidNegativeColumn() { var game = new Game(); var board = new BoardAPI(10, 8); var actualResult = board.IsMoveAllowed(game.Cells, -1); Assert.IsFalse(actualResult); }
public void TestMoveCannotBeMadeToInvalidPostiveColumn() { var game = new Game(); var board = new BoardAPI(Game.NUMBER_OF_COLUMNS, Game.NUMBER_OF_ROWS); //valid is 0...n-1 var actualResult = board.IsMoveAllowed(game.Cells, Game.NUMBER_OF_COLUMNS); Assert.IsFalse(actualResult); }