GetEra() public method

Gets the era in the specified DateTime.
The Persian calendar recognizes one era: A.P. (Latin "Anno Persarum", which means "the year of/for Persians").
public GetEra ( System.DateTime time ) : int
time System.DateTime The DateTime instance to read.
return int
 public void Era_Is_Always_PersianEra()
 {
     Assert.AreEqual(PersianCalendar.PersianEra, calendar.GetEra(PersianDate.MinValue));
     Assert.AreEqual(PersianCalendar.PersianEra, calendar.GetEra(PersianDate.MaxValue));
 }