コード例 #1
0
        public void GetHASunriseTest2()
        {
            SolarCalculator solCalc  = new SolarCalculator();
            double          latitude = 40.0;
            double          sd       = 23.43782475;
            double          has      = solCalc.GetHASunrise(latitude, sd);

            Assert.AreEqual(112.609815, Math.Round(has, 6));
        }
コード例 #2
0
        public void GetHASunriseTest1()
        {
            SolarCalculator solCalc  = new SolarCalculator();
            double          latitude = 40.0;
            double          sd       = -13.19798007;
            double          has      = solCalc.GetHASunrise(latitude, sd);

            Assert.AreEqual(79.7883504, Math.Round(has, 7));
        }