public void GetMinYearOfEra() { LocalDate date = new LocalDate(1, 1, 1); Assert.AreEqual(date.YearOfEra, Iso.GetMinYearOfEra(Era.Common)); Assert.AreEqual(Era.Common, date.Era); date = new LocalDate(0, 1, 1); Assert.AreEqual(date.YearOfEra, Iso.GetMinYearOfEra(Era.BeforeCommon)); Assert.AreEqual(Era.BeforeCommon, date.Era); }