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_makeSameMoveTwice_ThrowsExeption() { logic = new TicTacToeLogic(); logic.MakeMove(0, 0, 0, 0, 1); logic.MakeMove(0, 0, 0, 0, 2); }
public void Test_MakeMove_makeMoveWrongOutSideIndex_ThrowsExection() { logic = new TicTacToeLogic(); logic.MakeMove(0, 3, 2, 2, 1); }
public void Test_MakeMove_makeMoveWrongTeam_ThrowsExection() { logic = new TicTacToeLogic(); logic.MakeMove(0, 0, 1, 2, 3); }
public void Test_MakeMove_makeMoveInFinishedCell_ThrowsExection() { logic = new TicTacToeLogic(); MakeTeamWonInOneCellDiag(0, 0, 1); logic.MakeMove(0, 0, 1, 2, 2); }