public void CheckSecondSituationDiagonallyLeftTopTest() { Board board = new Board(); bool? win; AlphaBeta alphaBeta = new AlphaBeta(); int result = 0; //O //OX______ //OXX_____ //OXXX____ board.PutToken(0); board.PutToken(0); board.PutToken(0); board.PutToken(0); board.PutToken(1); board.PutToken(1); board.PutToken(1); board.PutToken(2); board.PutToken(2); board.PutToken(3); alphaBeta.CheckSecondSituationDiagonallyLeftTop(true, board, ref result); Assert.AreEqual(50000, result); //OX //OXX //OXXX result = 0; board.RemoveToken(0); alphaBeta.CheckSecondSituationDiagonallyLeftTop(true, board, ref result); Assert.AreEqual(900000, result); //_ //_X //_XX //_XXX result = 0; board.RemoveToken(0); board.RemoveToken(0); board.RemoveToken(0); board.RemoveToken(0); alphaBeta.CheckSecondSituationDiagonallyLeftTop(true, board, ref result); Assert.AreEqual(900000, result); //_______ //__XX___ //__OOX__ //OXOXOX_ //OXOXOX_ board = new Board(); result = 0; board.PutToken(0); board.PutToken(0); board.PutToken(1); board.PutToken(1); board.PutToken(2); board.PutToken(2); board.PutToken(2); board.PutToken(2); board.PutToken(3); board.PutToken(3); board.PutToken(3); board.PutToken(3); board.PutToken(4); board.PutToken(4); board.PutToken(4); board.PutToken(5); board.PutToken(5); alphaBeta.CheckSecondSituationDiagonallyLeftTop(true, board, ref result); Assert.AreEqual(int.MaxValue, result); }