Example #1
0
        public void GetSunsetTimeTest2()
        {
            SolarCalculator solCalc = new SolarCalculator();
            double          has     = 112.6098153;
            double          sn      = 0.54295156264305555;
            double          sst     = solCalc.GetSunsetTime(has, sn);

            Assert.AreEqual(TimeSpan.FromDays(0.85575660514305552), TimeSpan.FromDays(sst));
        }
Example #2
0
        public void GetSunsetTimeTest1()
        {
            SolarCalculator solCalc = new SolarCalculator();
            double          has     = 79.78835039;
            double          sn      = 0.50987652754861112;
            double          sst     = solCalc.GetSunsetTime(has, sn);

            Assert.AreEqual(TimeSpan.FromDays(0.73151083418750007), TimeSpan.FromDays(sst));
        }