Exemplo n.º 1
0
        public void CalculateSunriseTime_Test(GeoLocation location, DateTimeOffset instant, TimeSpan expectedSunriseTime)
        {
            // Act
            var sunriseTime = Astronomy.CalculateSunriseTime(location, instant);

            // Assert
            Assert.That(sunriseTime, Is.EqualTo(expectedSunriseTime).Within(TimeSpan.FromMinutes(3)));
        }