Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        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));
        }
Beispiel #4
0
        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));
        }