IsLeapDay() 공개 메소드

public IsLeapDay ( int year, int month, int day, int era ) : bool
year int
month int
day int
era int
리턴 bool
 public void PosTest3()
 {
     System.Globalization.Calendar tbc = new ThaiBuddhistCalendar();
     Random rand = new Random(-55);
     int year = tbc.MinSupportedDateTime.Year + 543;
     int month = tbc.MinSupportedDateTime.Month;
     int era;
     for (int i = 0; i < tbc.Eras.Length; i++)
     {
         era = tbc.Eras[i];
         Assert.False(tbc.IsLeapDay(year, month, era));
     }
 }
 public void PosTest2()
 {
     System.Globalization.Calendar tbc = new ThaiBuddhistCalendar();
     Random rand = new Random(-55);
     int year = 2000 + 543;
     int month = 2;
     int day = 29;
     int era;
     for (int i = 0; i < tbc.Eras.Length; i++)
     {
         era = tbc.Eras[i];
         Assert.True(tbc.IsLeapDay(year, month, day, era));
     }
 }