public void GameIsOver_IsFull_True() { //Arrange IGame game = new GameEngine.TicTacToe(3, 3); /* * X | O | X * X | X | O * O | X | O */ //Act game.PlaceMark(0, 0); game.PlaceMark(1, 0); game.PlaceMark(2, 0); game.PlaceMark(2, 1); game.PlaceMark(1, 1); game.PlaceMark(0, 2); game.PlaceMark(0, 1); game.PlaceMark(2, 2); game.PlaceMark(1, 2); bool isOver = game.GameIsOver(); //Assert Assert.True(isOver, "The game should be over because X has won."); }
public void GameIsOver_False() { //Arrange IGame game = new GameEngine.TicTacToe(3, 3); //Act bool isOver = game.GameIsOver(); //Assert Assert.False(isOver, "The game should not be over because nothing has happened yet."); }