예제 #1
0
        public void test3()
        {
            Solar solar = new Solar(2011, 7, 24);
            Lunar lunar = solar.getLunar();
            Fu    fu    = lunar.getFu();

            Assert.AreEqual("中伏", fu.toString(), solar.toYmd());
            Assert.AreEqual("中伏第1天", fu.toFullString(), solar.toYmd());
        }
예제 #2
0
        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());
        }
예제 #3
0
        public void test12()
        {
            Solar solar = new Solar(2020, 7, 17);
            Lunar lunar = solar.getLunar();
            Fu    fu    = lunar.getFu();

            Assert.AreEqual("初伏", fu.toString(), solar.toYmd());
            Assert.AreEqual("初伏第2天", fu.toFullString(), solar.toYmd());
        }
예제 #4
0
        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());
        }
예제 #5
0
        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());
        }
예제 #6
0
        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());
        }
예제 #7
0
        public void test14()
        {
            Solar solar = new Solar(2020, 8, 24);
            Lunar lunar = solar.getLunar();
            Fu    fu    = lunar.getFu();

            Assert.AreEqual("末伏", fu.toString(), solar.toYmd());
            Assert.AreEqual("末伏第10天", fu.toFullString(), solar.toYmd());
        }
예제 #8
0
        public void test12()
        {
            Solar solar = new Solar(2021, 2, 19);

            Assert.AreEqual("双鱼", solar.getXingZuo(), solar.toYmd());
            solar = new Solar(2021, 3, 20);
            Assert.AreEqual("双鱼", solar.getXingZuo(), solar.toYmd());
        }
예제 #9
0
        public void test4()
        {
            Solar solar = new Solar(2020, 6, 22);

            Assert.AreEqual("巨蟹", solar.getXingZuo(), solar.toYmd());
            solar = new Solar(2020, 7, 22);
            Assert.AreEqual("巨蟹", solar.getXingZuo(), solar.toYmd());
        }
예제 #10
0
        public void test3()
        {
            Solar solar = new Solar(2020, 5, 21);

            Assert.AreEqual("双子", solar.getXingZuo(), solar.toYmd());
            solar = new Solar(2020, 6, 21);
            Assert.AreEqual("双子", solar.getXingZuo(), solar.toYmd());
        }
예제 #11
0
        public void test2()
        {
            Solar solar = new Solar(2020, 4, 20);

            Assert.AreEqual("金牛", solar.getXingZuo(), solar.toYmd());
            solar = new Solar(2020, 5, 20);
            Assert.AreEqual("金牛", solar.getXingZuo(), solar.toYmd());
        }
예제 #12
0
        public void test1()
        {
            Solar solar = new Solar(2020, 3, 21);

            Assert.AreEqual("白羊", solar.getXingZuo(), solar.toYmd());
            solar = new Solar(2020, 4, 19);
            Assert.AreEqual("白羊", solar.getXingZuo(), solar.toYmd());
        }
예제 #13
0
        public void test11()
        {
            Solar solar = new Solar(2021, 1, 20);

            Assert.AreEqual("水瓶", solar.getXingZuo(), solar.toYmd());
            solar = new Solar(2021, 2, 18);
            Assert.AreEqual("水瓶", solar.getXingZuo(), solar.toYmd());
        }
예제 #14
0
        public void test10()
        {
            Solar solar = new Solar(2020, 12, 22);

            Assert.AreEqual("摩羯", solar.getXingZuo(), solar.toYmd());
            solar = new Solar(2021, 1, 19);
            Assert.AreEqual("摩羯", solar.getXingZuo(), solar.toYmd());
        }
예제 #15
0
        public void test9()
        {
            Solar solar = new Solar(2020, 11, 23);

            Assert.AreEqual("射手", solar.getXingZuo(), solar.toYmd());
            solar = new Solar(2020, 12, 21);
            Assert.AreEqual("射手", solar.getXingZuo(), solar.toYmd());
        }
예제 #16
0
        public void test8()
        {
            Solar solar = new Solar(2020, 10, 24);

            Assert.AreEqual("天蝎", solar.getXingZuo(), solar.toYmd());
            solar = new Solar(2020, 11, 22);
            Assert.AreEqual("天蝎", solar.getXingZuo(), solar.toYmd());
        }
예제 #17
0
        public void test7()
        {
            Solar solar = new Solar(2020, 9, 23);

            Assert.AreEqual("天秤", solar.getXingZuo(), solar.toYmd());
            solar = new Solar(2020, 10, 23);
            Assert.AreEqual("天秤", solar.getXingZuo(), solar.toYmd());
        }
예제 #18
0
        public void test6()
        {
            Solar solar = new Solar(2020, 8, 23);

            Assert.AreEqual("处女", solar.getXingZuo(), solar.toYmd());
            solar = new Solar(2020, 9, 22);
            Assert.AreEqual("处女", solar.getXingZuo(), solar.toYmd());
        }