public void GetTileTest() { string mapFileName = "testMap"; string mapTitle = "Test"; uint mapWidth = 1; uint mapHeight = 1; Map target = new Map(mapTitle, mapFileName, mapWidth, mapHeight); uint x = 0; uint y = 0; Tile expected = new Tile(); expected.IsPassable = true; Tile actual; actual = target.GetTile(x, y); Assert.AreEqual(expected, actual); }
public void SetTileTest() { string mapFileName = "testMap"; string mapTitle = "Test"; uint mapWidth = 2; uint mapHeight = 2; Map target = new Map(mapTitle, mapFileName, mapWidth, mapHeight); uint x = 1; uint y = 1; Tile tile = new Tile(); target.SetTile(x, y, tile); Assert.IsFalse(target.GetTile(x, y).IsPassable); }