public void TestSwapTiles() { var grid = new Grid(); var emptyTile = new Tile(string.Empty, 0, TileType.Empty); grid.AddTile(emptyTile); Tile tile = emptyTile.CloneMemberwise(); tile.Label = "1"; tile.Position = 1; tile.Type = TileType.Number; grid.AddTile(tile); grid.SwapTiles(tile); var actual = tile.Position; var expected = 0; Assert.AreEqual(expected, actual); }