Ejemplo n.º 1
0
        public void HourAngleInAfternoonIsPositive()
        {
            var resultRadians = HourAngle.GetHourAngle(new DateTime(2020, 1, 1, 18, 0, 0));
            var resultDegrees = resultRadians.FromRadiansToDegree();

            Assert.AreEqual(90.0, resultDegrees);
        }
Ejemplo n.º 2
0
        public void HourAngleInMorningIsNegative()
        {
            var resultRadians = HourAngle.GetHourAngle(new DateTime(2020, 1, 1, 6, 0, 0));
            var resultDegrees = resultRadians.FromRadiansToDegree();

            Assert.AreEqual(-90.0, resultDegrees);
        }
Ejemplo n.º 3
0
        public void HourAngleAtSolarNoonIsZero()
        {
            var result = HourAngle.GetHourAngle(new DateTime(2020, 1, 1, 12, 0, 0));

            Assert.AreEqual(0.0, result);
        }