public override DateTime AddMonths(DateTime time, int months) { return (helper.AddMonths(time, months)); }
public void NegTest1() { System.Globalization.Calendar kC = new KoreanCalendar(); DateTime actualValue; Assert.Throws<ArgumentOutOfRangeException>(() => { actualValue = kC.AddMonths(new GregorianCalendar().ToDateTime(1, 1, 1, 0, 0, 0, 0), -1); }); }