Practical Astronomy Algorithms in .NET/C#
Loading...
Searching...
No Matches
PAEclipses.cs
Go to the documentation of this file.
1using Xunit;
2
3namespace PALib.Tests;
4
5public class PAEclipses_Tests
6{
7 private readonly PAEclipses _paEclipses;
8
10 {
11 _paEclipses = new PAEclipses();
12 }
13
14 [Fact]
16 {
17 Assert.Equal(("Lunar eclipse certain", 4, 4, 2015), _paEclipses.LunarEclipseOccurrence(1, 4, 2015, false, 10));
18 }
19
20 [Fact]
22 {
23 Assert.Equal((4, 4, 2015, 9, 0, 10, 16, 11, 55, 12, 1, 12, 7, 13, 46, 15, 1, 1.01), _paEclipses.LunarEclipseCircumstances(1, 4, 2015, false, 10));
24 }
25
26 [Fact]
28 {
29 Assert.Equal(("Solar eclipse certain", 20, 3, 2015), _paEclipses.SolarEclipseOccurrence(1, 4, 2015, false, 0));
30 }
31
32 [Fact]
34 {
35 Assert.Equal((20, 3, 2015, 8, 55, 9, 57, 10, 58, 1.016), _paEclipses.SolarEclipseCircumstances(20, 3, 2015, false, 0, 0, 68.65));
36 }
37}
Eclipse calculations.
Definition PAEclipses.cs:10
string double int int eventDateYear SolarEclipseOccurrence(double localDateDay, int localDateMonth, int localDateYear, bool isDaylightSaving, int zoneCorrectionHours)
string double int int eventDateYear LunarEclipseOccurrence(double localDateDay, int localDateMonth, int localDateYear, bool isDaylightSaving, int zoneCorrectionHours)
Definition PAEclipses.cs:20
double double double double double double double double double double double double double double double double double double eclipseMagnitude LunarEclipseCircumstances(double localDateDay, int localDateMonth, int localDateYear, bool isDaylightSaving, int zoneCorrectionHours)
Definition PAEclipses.cs:69
double int int double double double double double double double eclipseMagnitude SolarEclipseCircumstances(double localDateDay, int localDateMonth, int localDateYear, bool isDaylightSaving, int zoneCorrectionHours, double geogLongitudeDeg, double geogLatitudeDeg)
readonly PAEclipses _paEclipses
Definition PAEclipses.cs:7