예제 #1
0
        public void testConvert1()
        {
            Lunar lunar = new Lunar(2019, 12, 29);

            Assert.AreEqual("二〇一九年腊月廿九", lunar.ToString(), "com.nlf.calendar.Solar.getLunar 有错。");
            Assert.AreEqual("2020-01-23", lunar.getSolar().ToString(), "com.nlf.calendar.Lunar.getSolar 有错。");
        }
예제 #2
0
        public void testConvert()
        {
            Solar solar = new Solar(2020, 1, 23);
            Lunar lunar = solar.getLunar();

            Assert.AreEqual("二〇一九年腊月廿九", lunar.ToString(), "com.nlf.calendar.Solar.getLunar 有错。");
            Assert.AreEqual("2020-01-23", lunar.getSolar().ToString(), "com.nlf.calendar.Lunar.getSolar 有错。");
        }