public void GetSolarNoonTest2() { SolarCalculator solCalc = new SolarCalculator(); double longitude = -105.0; double offset = -6.0; double eot = -1.850250206; double sn = solCalc.GetSolarNoon(longitude, offset, eot); Assert.AreEqual(TimeSpan.FromDays(0.54295156264305555), TimeSpan.FromDays(sn)); }
public void GetSolarNoonTest1() { SolarCalculator solCalc = new SolarCalculator(); double longitude = -105.0; double offset = -7.0; double eot = -14.22219967; double sn = solCalc.GetSolarNoon(longitude, offset, eot); Assert.AreEqual(TimeSpan.FromDays(0.50987652754861112), TimeSpan.FromDays(sn)); }