IsLeapYear() public method

public IsLeapYear ( int year, int era ) : bool
year int
era int
return bool
 public void NegTest1()
 {
     System.Globalization.Calendar kC = new KoreanCalendar();
     int year = 2333;
     int era = 1;
     bool actualValue;
     Assert.Throws<ArgumentOutOfRangeException>(() =>
     {
         actualValue = kC.IsLeapYear(year, era);
     });
 }
 public void PosTest4()
 {
     System.Globalization.Calendar kC = new KoreanCalendar();
     System.Globalization.Calendar gC = new GregorianCalendar();
     DateTime dateTime = gC.ToDateTime(1200, 2, 29, 0, 0, 0, 0);
     int year = dateTime.Year;
     int era = gC.GetEra(dateTime);
     bool expectedValue = gC.IsLeapYear(year, era);
     bool actualValue;
     actualValue = kC.IsLeapYear(year + 2333, kC.GetEra(dateTime));
     Assert.Equal(expectedValue, actualValue);
 }
 public void NegTest5()
 {
     System.Globalization.Calendar kC = new KoreanCalendar();
     int year = TestLibrary.Generator.GetInt16(-55) % 9999 + 2334;
     int month = TestLibrary.Generator.GetInt16(-55) % 12 + 1;
     int era = 2;
     bool actualValue;
     Assert.Throws<ArgumentOutOfRangeException>(() =>
     {
         actualValue = kC.IsLeapYear(year, era);
     });
 }
 public void NegTest4()
 {
     System.Globalization.Calendar kC = new KoreanCalendar();
     int year = TestLibrary.Generator.GetInt16(-55) % 9999 + 2334;
     int month = TestLibrary.Generator.GetInt16(-55) % 12 + 1;
     // The KoreanEra is 1, however using an Era value of 0 defaults to "current era" for the calendar being used. In order to force
     // the ArgumentOutOfRangeException the era must not be 0 or 1
     int era = -1;
     bool actualValue;
     Assert.Throws<ArgumentOutOfRangeException>(() =>
     {
         actualValue = kC.IsLeapYear(year, era);
     });
 }