Пример #1
0
        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");
        }
Пример #2
0
        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");
        }
Пример #3
0
 /// <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;
 }