public void Check30WNorthOfEquatorWestOf30W() { var date = new DateTime(2005, 05, 26); var location = new Location(52, -73); var expectedDate = date; var date30w = DowJonesDates.Get30WCompliantDate(date, location); Assert.AreEqual(expectedDate, date30w); }
public void Check30WSouthOfEquatorWestOfGMTEastOf30W() { var date = new DateTime(2005, 05, 26); var location = new Location(-37, 12); var expectedDate = date.AddDays(-1); var date30w = DowJonesDates.Get30WCompliantDate(date, location); Assert.AreEqual(expectedDate, date30w); }