public void AssertCurrentPlayerIsO() { //arrange Tran_CIS3374_Lab06_TicTacToe.Board board = new Tran_CIS3374_Lab06_TicTacToe.Board(); int expectedCurrentPlayer = 2; //act board.CreateBoard(); board.ChangePlayer(); //assert Assert.AreEqual(expectedCurrentPlayer, board.CurrentPlayer()); }
public void AssertCurrentPlayerPlacesO() { //arrange Tran_CIS3374_Lab06_TicTacToe.Board board = new Tran_CIS3374_Lab06_TicTacToe.Board(); int expectedPlacementValue = 2; //act board.CreateBoard(); board.ChangePlayer(); board.MakeMove(5); //assert Assert.AreEqual(expectedPlacementValue, board.SpaceInUse(5)); }