public void BoardIsNineField() { tictactoe tictactoe = new tictactoe(); tictactoe.CreateBoard(); Assert.AreEqual(9, tictactoe.TictactoeArray.Length); }
public void CurrentPlayerPlaceO() { tictactoe tictactoe = new tictactoe(); tictactoe.CreateBoard(); tictactoe.MakeMove(1, "O"); Assert.AreEqual("O", tictactoe.TictactoeArray[1]); }
public void CurrentPlayerPlaceX() { tictactoe tictactoe = new tictactoe(); tictactoe.CreateBoard(); tictactoe.MakeMove(2, "X"); Assert.AreEqual("X", tictactoe.TictactoeArray[2]); }
public void placementIsUsed() { tictactoe tictactoe = new tictactoe(); tictactoe.CreateBoard(); bool inUsed = tictactoe.SpaceinUse(3); Assert.AreEqual(false, inUsed); }