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)); } }