IsLeapMonth() public method

Determines whether the month specified by the year, month, and era parameters is a leap month.
In the Persian calendar leap years are applied every 4 or 5 years according to a certain pattern that iterates in a 2820-year cycle. A common year has 365 days and a leap year has 366 days. A leap month is an entire month that occurs only in a leap year. The Persian calendar does not have any leap months.
public IsLeapMonth ( int year, int month ) : bool
year int An integer that represents the year.
month int An integer that represents the month.
return bool
        public void Can_Get_Leap_Month()
        {
            var pd1 = new PersianDate(1387, 12, 30);
            var pd2 = new PersianDate(1386, 12, 29);

            var result1 = calendar.IsLeapMonth(pd1.Year, 12);
            var result2 = calendar.IsLeapMonth(pd2.Year, 12);

            Assert.True(result1);
            Assert.False(result2);
        }