public void AnyMovesLeft_is_true_when_board_still_has_spaces_available() { //Arrange var board = new StandardTestBoard(); //Act var result = board.AnyMovesLeft(); //Assert Assert.IsTrue(result); }
public void AnyMovesLeft_is_false_when_board_still_has_no_spaces_available() { //Arrange var board = new StandardTestBoard(); board.PlaceTokenOnBoard(TickTackToeBoard.TickTackToeToken.X, 0, 0); board.PlaceTokenOnBoard(TickTackToeBoard.TickTackToeToken.X, 0, 1); board.PlaceTokenOnBoard(TickTackToeBoard.TickTackToeToken.X, 0, 2); board.PlaceTokenOnBoard(TickTackToeBoard.TickTackToeToken.O, 1, 0); board.PlaceTokenOnBoard(TickTackToeBoard.TickTackToeToken.O, 1, 1); board.PlaceTokenOnBoard(TickTackToeBoard.TickTackToeToken.O, 1, 2); board.PlaceTokenOnBoard(TickTackToeBoard.TickTackToeToken.O, 2, 0); board.PlaceTokenOnBoard(TickTackToeBoard.TickTackToeToken.O, 2, 1); board.PlaceTokenOnBoard(TickTackToeBoard.TickTackToeToken.O, 2, 2); //Act var result = board.AnyMovesLeft(); //Assert Assert.IsFalse(result); }