public void GetTrueSolarTimeTest2() { SolarCalculator solCalc = new SolarCalculator(); double longitude = -105.00; double offset = -6.0; double hours = new TimeSpan(16, 0, 0).TotalDays; double eot = -1.850250206; double tst = solCalc.GetTrueSolarTime(longitude, offset, hours, eot); Assert.AreEqual(898.1497498, Math.Round(tst, 7)); }
public void GetTrueSolarTimeTest1() { SolarCalculator solCalc = new SolarCalculator(); double longitude = -105.00; double offset = -7.0; double hours = new TimeSpan(12, 0, 0).TotalDays; double eot = -14.22219967; double tst = solCalc.GetTrueSolarTime(longitude, offset, hours, eot); Assert.AreEqual(705.7778003, Math.Round(tst, 7)); }