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)); }
public void GetJulianDayTest3() { Solar.SolarCalculator solCalc = new SolarCalculator(); DateTime date = new DateTime(2010, 06, 21, 21, 54, 00); double jd = solCalc.GetJulianDay(date.ToOADate(), -6); Assert.AreEqual(2455369.66, Math.Round(jd, 2)); }
public void GetJulianDayTest2() { Solar.SolarCalculator solCalc = new SolarCalculator(); DateTime date = new DateTime(2010, 12, 10, 12, 0, 0); double jd = solCalc.GetJulianDay(date.ToOADate(), -7); Assert.AreEqual(2455541.29, Math.Round(jd, 2)); }