Пример #1
0
        public void GetSDTest2()
        {
            SolarCalculator solCalc = new SolarCalculator();
            double          sal     = 90.41761466;
            double          oc      = 23.43848456;
            double          sd      = solCalc.GetSunDeclin(sal, oc);

            Assert.AreEqual(23.43782475, Math.Round(sd, 8));
        }
Пример #2
0
        public void GetSDTest1()
        {
            SolarCalculator solCalc = new SolarCalculator();
            double          sal     = 324.9709356;
            double          oc      = 23.43882153;
            double          sd      = solCalc.GetSunDeclin(sal, oc);

            Assert.AreEqual(-13.1979801, Math.Round(sd, 7));
        }