public GeoDataBaseClientTests() { var db = new GeoDataBaseClient("./DataBase/geobase.dat"); db.Init(); _client = db; _header = db.GetHeader(); }
public void GetHeader_Test() { var header = _client.GetHeader(); Assert.AreEqual(1, header.Version); Assert.AreEqual(10800060u, header.OffsetCities); Assert.AreEqual(1200060u, header.OffsetLocations); Assert.AreEqual(60u, header.OffsetRanges); Assert.AreEqual(100000, header.Records); Assert.AreEqual(1487167858ul, header.Timestamp); }