GetDaysInYear() public method

public GetDaysInYear ( int year, int era ) : int
year int
era int
return int
 public void PosTest3()
 {
     System.Globalization.Calendar tbc = new ThaiBuddhistCalendar();
     DateTime dt = tbc.MaxSupportedDateTime;
     int year = dt.Year + 543;
     int era;
     int actualDays = 365;
     for (int i = 0; i < tbc.Eras.Length; i++)
     {
         era = tbc.Eras[i];
         Assert.Equal(actualDays, tbc.GetDaysInYear(year, era));
     }
 }
 public void PosTest4()
 {
     System.Globalization.Calendar tbc = new ThaiBuddhistCalendar();
     DateTime dt = new DateTime(2000, 12, 31);
     int year = 2000 + 543;
     int era;
     int actualDays = 366;
     for (int i = 0; i < tbc.Eras.Length; i++)
     {
         era = tbc.Eras[i];
         Assert.Equal(actualDays, tbc.GetDaysInYear(year, era));
     }
 }
        public void PosTest1()
        {
            System.Globalization.Calendar tbc = new ThaiBuddhistCalendar();
            Random rand = new Random(-55);
            int year = rand.Next(tbc.MinSupportedDateTime.Year + 543, tbc.MaxSupportedDateTime.Year + 544);
            int era;
            int actualDays;
            if (IsLeapYear(year))
            {
                actualDays = 366;
            }
            else
            {
                actualDays = 365;
            }

            for (int i = 0; i < tbc.Eras.Length; i++)
            {
                era = tbc.Eras[i];
                Assert.Equal(actualDays, tbc.GetDaysInYear(year, era));
            }
        }
 public void NegTest1()
 {
     System.Globalization.Calendar tbc = new ThaiBuddhistCalendar();
     Random rand = new Random(-55);
     int year = rand.Next(tbc.MinSupportedDateTime.Year + 543, tbc.MaxSupportedDateTime.Year + 544);
     int era = 2;
     Assert.Throws<ArgumentOutOfRangeException>(() =>
     {
         tbc.GetDaysInYear(year, era);
     });
 }