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)); }
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))); }