public void JulianToMoslemTest(long year, long month, long day, long expectedYear, long expectedMonth, long expectedDay) { AASCalendarDate moslemDate = AASMoslemCalendar.JulianToMoslem(year, month, day); Assert.Equal(expectedYear, moslemDate.Year); Assert.Equal(expectedMonth, moslemDate.Month); Assert.Equal(expectedDay, moslemDate.Day); }
public void MoslemToJulianTest(long year, long month, long day, long expectedYear, long expectedMonth, long expectedDay) { AASCalendarDate julianDate = AASMoslemCalendar.MoslemToJulian(year, month, day); Assert.Equal(expectedYear, julianDate.Year); Assert.Equal(expectedMonth, julianDate.Month); Assert.Equal(expectedDay, julianDate.Day); }
public void IsLeapTest(long year, bool expectedLeapResult) { bool isLeap = AASMoslemCalendar.IsLeap(year); Assert.Equal(expectedLeapResult, isLeap); }