public void TestEastPost20080526() { DateTime test = new DateTime(2008, 05, 27); var result = GDate.ForLongitude(test, 0); Assert.AreEqual("2008-05-27", result.ToString()); Assert.AreEqual("2008-05-26", result.DowJonesString()); }
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); }