IsLeapYear() публичный Метод

public IsLeapYear ( int year, int era ) : bool
year int
era int
Результат bool
 public void PosTest4()
 {
     System.Globalization.Calendar tbc = new ThaiBuddhistCalendar();
     Random rand = new Random(-55);
     int year = tbc.MaxSupportedDateTime.Year + 543;
     int era;
     for (int i = 0; i < tbc.Eras.Length; i++)
     {
         era = tbc.Eras[i];
         Assert.False(tbc.IsLeapYear(year, era));
     }
 }
 public void PosTest2()
 {
     System.Globalization.Calendar tbc = new ThaiBuddhistCalendar();
     Random rand = new Random(-55);
     int year = 2000 + 543;
     int era;
     for (int i = 0; i < tbc.Eras.Length; i++)
     {
         era = tbc.Eras[i];
         Assert.True(tbc.IsLeapYear(year, era));
     }
 }