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