Example #1
0
        public void CalculateSunsetTime_Test(GeoLocation location, DateTimeOffset instant, TimeSpan expectedSunsetTime)
        {
            // Act
            var sunsetTime = Astronomy.CalculateSunsetTime(location, instant);

            // Assert
            Assert.That(sunsetTime, Is.EqualTo(expectedSunsetTime).Within(TimeSpan.FromMinutes(3)));
        }