예제 #1
0
        public void Can_convert_Gregorian_date_to_Jewish_Date_Native()
        {
            var dateTime = new DateTime(2010, 4, 15, gregorianCalendar);

            Assert.That(jewishCalendar.GetYear(dateTime), Is.EqualTo(5770));
            Assert.That(jewishCalendar.GetMonth(dateTime), Is.EqualTo(8));
            Assert.That(jewishCalendar.GetDayOfMonth(dateTime), Is.EqualTo(1));
        }