private void VerifyDJIA(DateTime date, string djia) { GDate gdate = new GDate(date, date); var actual_djia = GeoHash.GetDowJonesAsync(gdate).ConfigureAwait(false).GetAwaiter().GetResult(); Assert.AreEqual(djia, actual_djia, $"Data line {validated+1}"); }
public void TestGetDowJonesAsync() { GDate gdate = new GDate(2005, 05, 26); // https://geohashing.site/images/thumb/5/51/Coordinates.png/600px-Coordinates.png string expected_djia = "10458.68"; var djia = GeoHash.GetDowJonesAsync(gdate).ConfigureAwait(false).GetAwaiter().GetResult(); Assert.AreEqual(expected_djia, djia); }
public void TestGetDJIAEast() { DateTime date = new DateTime(2008, 05, 27); GDate gdate = GDate.ForLongitude(date, -29); string expected_djia = "12620.90"; var djia = GeoHash.GetDowJonesAsync(gdate).ConfigureAwait(false).GetAwaiter().GetResult(); Assert.AreEqual(expected_djia, djia); }