示例#1
0
文件: LogicTests.cs 项目: Miraxek/X90
 public void Test_IsFull_Full1_CurrectResult()
 {
     logic = new TicTacToeLogic();
     MakeFullOutsideCell(0, 0);
     MakeFullOutsideCell(1, 1);
     MakeFullOutsideCell(2, 2);
     MakeTeamWonInOneCellDiag(0, 1, 1);
     MakeTeamWonInOneCellDiag(0, 2, 1);
     MakeTeamWonInOneCellDiag(1, 2, 2);
     MakeTeamWonInOneCellDiag(1, 0, 2);
     MakeTeamWonInOneCellDiag(2, 0, 1);
     MakeTeamWonInOneCellDiag(2, 1, 1);
     Assert.IsTrue(logic.IsFull());
 }
示例#2
0
文件: LogicTests.cs 项目: Miraxek/X90
 public void Test_IsFull_NotFull2_CurrectResult()
 {
     logic = new TicTacToeLogic();
     MakeFullOutsideCell(0, 0);
     MakeFullOutsideCell(1, 1);
     MakeFullOutsideCell(2, 2);
     Assert.IsFalse(logic.IsFull());
 }
示例#3
0
文件: LogicTests.cs 项目: Miraxek/X90
 public void Test_IsFull_NotFull1_CurrectResult()
 {
     logic = new TicTacToeLogic();
     Assert.IsFalse(logic.IsFull());
 }