public void Test_MakeMove_WonInOneCellRows_CurrectResult() { for (int i = 0; i < 3; i++) { logic = new TicTacToeLogic(); MakeTeamWonInOneCellRow(0, 0, 1, i); Assert.AreEqual(1, logic.GetOutsideCell(0, 0)); } }
public void Test_MakeMove_simpleMove_currectResult() { logic = new TicTacToeLogic(); logic.MakeMove(0, 0, 0, 0, 1); Assert.AreEqual(1, logic.GetInsideCell(0, 0, 0, 0)); Assert.AreEqual(0, logic.GetOutsideCell(0, 0)); }
public void Test_MakeMove_WonInOneCellDiag_CurrectResult() { logic = new TicTacToeLogic(); MakeTeamWonInOneCellDiag(0, 0, 1); Assert.AreEqual(1, logic.GetOutsideCell(0, 0)); }
public void Test_MakeMove_oneFullOutsideCell_currectResult() { logic = new TicTacToeLogic(); MakeFullOutsideCell(0, 0); Assert.IsTrue(logic.GetOutsideCell(0, 0) > 2); }