public void MapTest70450() { string path = @"D:\Clients\7.0.45.0"; TileData.Initialize(path); Map.Initialize(path, 0); MapInfo mi; foreach (LandTileTest lt in m_LandTileTests) { MacroEx.GetMapInfo(lt.Facet, lt.X, lt.Y, out mi); Assert.IsNotNull(mi.landTile, "LandTile is null."); Assert.AreEqual(mi.landTile.ID, lt.LandTileID, "LandTile doesn't match expected."); Assert.AreEqual(mi.landTile.Name, lt.LandTileName, "LandTile Name doesn't match expected."); } TileData.Dispose(); Map.Dispose(); }
public void MapTest70022() { string path = @"D:\Clients\7.0.2.2"; Version version = ExeInfo.GetFileVersion(Path.Combine(path, "client.exe")); TileData.Initialize(path); Map.Initialize(path, 0); MapInfo mi; foreach (LandTileTest lt in m_LandTileTests) { MacroEx.GetMapInfo(lt.Facet, lt.X, lt.Y, out mi); Assert.IsNotNull(mi.landTile, "LandTile is null."); Assert.AreEqual(mi.landTile.ID, lt.LandTileID, "LandTile doesn't match expected."); Assert.AreEqual(mi.landTile.Name, lt.LandTileName, "LandTile Name doesn't match expected."); } TileData.Dispose(); Map.Dispose(); }