public void ApplyTurnThrowsOnYellowActionWhenRedTurn() { var gameLogic = new GameLogic(); var game = new Game() { CurrentTurnPlayer = Player.Red }; gameLogic.ApplyTurn(game, Player.Yellow, 0); }
public void ApplyTurnTestAppliesAndTogglesPlayer() { var gameLogic = new GameLogic(); var game = new Game() { GameOverState = GameOverState.InProgress }; game.Cells = new int[,] { { 2, 1, 0, 0 }, { 1, 2, 1, 2 }, { 1, 2, 1, 2 }, { 1, 2, 1, 2 }, }; var column = 3; gameLogic.ApplyTurn(game, Player.Red, column); Assert.AreEqual(GameOverState.InProgress, game.GameOverState); Assert.AreEqual((int)Player.Red, game.Cells[3, 0]); Assert.AreEqual(Player.Yellow, game.CurrentTurnPlayer); }