Пример #1
0
        public void Test5x5SquareTaken()
        {
            GameState testState = new GameState(5, 5);

            testState.TakeSquare(4, 4, 1);
            Debug.Assert(testState.gameBoard[(5 * 5) - 1] == 2);
            Debug.Assert(testState.IsSquareTaken(4, 4));
        }
Пример #2
0
        public void Test3x3SquareTaken()
        {
            GameState testState = new GameState(3, 3);

            testState.TakeSquare(1, 1, 1);
            Debug.Assert(testState.gameBoard[4] == 2);
            Debug.Assert(testState.IsSquareTaken(1, 1));
        }