GetMonthsInYear() public method

Gets the number of months in the year specified by the year and era parameters.
public GetMonthsInYear ( int year, int era ) : int
year int An integer that represents the year.
era int An integer that represents the era.
return int
        public void Always_Twelve_Months_In_Year()
        {
            PersianDate pdMin = PersianDate.MinValue;
            PersianDate pdMax = PersianDate.MaxValue;

            Assert.AreEqual(12, calendar.GetMonthsInYear(pdMax.Year));
            Assert.AreEqual(12, calendar.GetMonthsInYear(pdMin.Year));
        }