GetEra() public method

public GetEra ( System.DateTime time ) : int
time System.DateTime
return int
 public void PosTest3()
 {
     System.Globalization.Calendar tbc = new ThaiBuddhistCalendar();
     DateTime dt = tbc.MinSupportedDateTime;
     int era = tbc.GetEra(dt);
     Assert.Equal(1, era);
 }
 public void PosTest4()
 {
     System.Globalization.Calendar tbc = new ThaiBuddhistCalendar();
     DateTime dt = new DateTime(2000, 2, 29);
     int era = tbc.GetEra(dt);
     Assert.Equal(1, 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 month = rand.Next(1, 13);
     int day = rand.Next(1, tbc.GetDaysInMonth(year, month) + 1);
     DateTime dt = tbc.ToDateTime(year, month, day, 0, 0, 0, 0);
     int era = tbc.GetEra(dt);
     Assert.Equal(1, era);
 }