public void GetJulianCentury2() { Solar.SolarCalculator solCalc = new SolarCalculator(); double julianDay = solCalc.GetJulianDay(new DateTime(2010, 06, 21, 16, 0, 0).ToOADate(), -6); double jc = solCalc.GetJulianCentury(julianDay); Assert.AreEqual(0.10470682, Math.Round(jc, 8)); }
public void GetJulianCentury1() { Solar.SolarCalculator solCalc = new SolarCalculator(); double julianDay = solCalc.GetJulianDay(new DateTime(2010, 02, 13, 12, 0, 0).ToOADate(), -7); double jc = solCalc.GetJulianCentury(julianDay); Assert.AreEqual(0.10119895, Math.Round(jc, 8)); }