public void UndoMoveTest() { for (int player = 0; player < 2; player++) { Grid referenceGrid = new Grid(width, height, seed); Grid testGrid = new Grid(width, height, seed); for (int y = 0; y < height; y++) { for (int move = 0; move < width; move++) { referenceGrid.Move(move, player); testGrid.Move(move, player); testGrid.UndoMove(move, player); testGrid.Move(move, player); Assert.IsTrue(testGrid.Equals(referenceGrid)); Assert.AreEqual(testGrid.Hash, referenceGrid.Hash); } } } }