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