public void Test_getCalendar() { DateFormat format = DateFormat.GetInstance(); IBM.ICU.Util.Calendar cal1 = format.GetCalendar(); IBM.ICU.Util.Calendar cal2 = format.GetCalendar(); NUnit.Framework.Assert.IsTrue(cal1 == cal2, "Calendars not identical"); }
public void Test_setCalendarLjava_util_Calendar() { DateFormat format = DateFormat.GetInstance(); IBM.ICU.Util.Calendar cal = IBM.ICU.Util.Calendar.GetInstance(); format.SetCalendar(cal); NUnit.Framework.Assert.IsTrue(cal == format.GetCalendar(), "Not identical Calendar"); }
/// <summary> /// Sets the Calendar used by this DateFormat. /// </summary> /// /// <param name="cal">the Calendar</param> public void SetCalendar(IBM.ICU.Util.Calendar cal) { calendar = cal; }