예제 #1
0
파일: LogicTests.cs 프로젝트: Miraxek/X90
 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));
     }
 }
예제 #2
0
파일: LogicTests.cs 프로젝트: Miraxek/X90
 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));
 }
예제 #3
0
파일: LogicTests.cs 프로젝트: Miraxek/X90
 public void Test_MakeMove_WonInOneCellDiag_CurrectResult()
 {
     logic = new TicTacToeLogic();
     MakeTeamWonInOneCellDiag(0, 0, 1);
     Assert.AreEqual(1, logic.GetOutsideCell(0, 0));
 }
예제 #4
0
파일: LogicTests.cs 프로젝트: Miraxek/X90
 public void Test_MakeMove_oneFullOutsideCell_currectResult()
 {
     logic = new TicTacToeLogic();
     MakeFullOutsideCell(0, 0);
     Assert.IsTrue(logic.GetOutsideCell(0, 0) > 2);
 }