public void test7() { Solar solar = new Solar(2021, 7, 5); Lunar lunar = solar.getLunar(); ShuJiu shuJiu = lunar.getShuJiu(); Assert.IsNull(shuJiu); }
public void test3() { Solar solar = new Solar(2020, 1, 7); Lunar lunar = solar.getLunar(); ShuJiu shuJiu = lunar.getShuJiu(); Assert.AreEqual("二九", shuJiu.toString(), solar.toYmd()); Assert.AreEqual("二九第8天", shuJiu.toFullString(), solar.toYmd()); }
public void test2() { Solar solar = new Solar(2020, 12, 22); Lunar lunar = solar.getLunar(); ShuJiu shuJiu = lunar.getShuJiu(); Assert.AreEqual("一九", shuJiu.toString(), solar.toYmd()); Assert.AreEqual("一九第2天", shuJiu.toFullString(), solar.toYmd()); }
public void test6() { Solar solar = new Solar(2021, 3, 5); Lunar lunar = solar.getLunar(); ShuJiu shuJiu = lunar.getShuJiu(); Assert.AreEqual("九九", shuJiu.toString(), solar.toYmd()); Assert.AreEqual("九九第3天", shuJiu.toFullString(), solar.toYmd()); }
public void test5() { Solar solar = new Solar(2021, 1, 8); Lunar lunar = solar.getLunar(); ShuJiu shuJiu = lunar.getShuJiu(); Assert.AreEqual("三九", shuJiu.toString(), solar.toYmd()); Assert.AreEqual("三九第1天", shuJiu.toFullString(), solar.toYmd()); }