public void AssertPlacementInUnoccupied() { //arrange Tran_CIS3374_Lab06_TicTacToe.Board board = new Tran_CIS3374_Lab06_TicTacToe.Board(); bool expectedUnoccupiedSpace = true; //act board.CreateBoard(); //assert Assert.AreEqual(expectedUnoccupiedSpace, board.MakeMove(5)); }
public void AssertCurrentPlayerIsX() { //arrange Tran_CIS3374_Lab06_TicTacToe.Board board = new Tran_CIS3374_Lab06_TicTacToe.Board(); int expectedCurrentPlayer = 1; //act board.CreateBoard(); //assert Assert.AreEqual(expectedCurrentPlayer, board.CurrentPlayer()); }
public void AssertNineActiveFields() { //arrange int expectedBoardSize = 9; Tran_CIS3374_Lab06_TicTacToe.Board board = new Tran_CIS3374_Lab06_TicTacToe.Board(); //act board.CreateBoard(); //assert Assert.AreEqual(expectedBoardSize, board.ticTacToeBoard.Length); }
public void AssertCurrentPlayerPlacesX() { //arrange Tran_CIS3374_Lab06_TicTacToe.Board board = new Tran_CIS3374_Lab06_TicTacToe.Board(); int expectedPlacementValue = 1; //act board.CreateBoard(); board.MakeMove(5); //assert Assert.AreEqual(expectedPlacementValue, board.SpaceInUse(5)); }