Exemplo n.º 1
0
        public void BoardCopyTest()
        {
            HexBoard hexBoard = new HexBoard(BoardSize);
            HexBoard copyBoard = new HexBoard(hexBoard);

            Assert.IsTrue(copyBoard.Equals(hexBoard));

            copyBoard.PlayMove(0, 0, true);

            Assert.IsFalse(copyBoard.Equals(hexBoard));
        }
Exemplo n.º 2
0
        public void TestEqualsFail()
        {
            HexBoard hexBoard = new HexBoard(BoardSize);

            Assert.IsFalse(hexBoard.Equals(null));
            Assert.IsFalse(hexBoard.Equals(3));
            Assert.IsFalse(hexBoard.Equals("Hello hex board"));
            Assert.IsFalse(hexBoard.Equals(new HexBoard(3)));
        }