public static void GetLeapMonthTest(Calendar calendar, int yearHasLeapMonth, CalendarAlgorithmType algorithmType)
{
if (yearHasLeapMonth > 0)
{
Assert.NotEqual(calendar.GetLeapMonth(yearHasLeapMonth), 0);
Assert.Equal(0, calendar.GetLeapMonth(yearHasLeapMonth - 1));
}
else
Assert.True(calendar.GetLeapMonth(calendar.GetYear(DateTime.Today)) == 0,
"calendar.GetLeapMonth returned wrong value");
}