예제 #1
0
        public void ToString5Test()
        {
            var Date1 = new KoreanDate(4248, KoreanDateEraType.Gojoseon, 4, 8);

            Assert.AreEqual("08", Date1.ToString("DD"));
        }
예제 #2
0
        public void ToString15Test()
        {
            var Date1 = new KoreanDate(4248, KoreanDateEraType.Gojoseon, 4, 8);

            Assert.AreEqual("4248, month 4 day 8, Gojoseon", Date1.ToString("YYYY, month M day D, E"));
        }
예제 #3
0
        public void ToString9Test()
        {
            var Date1 = new KoreanDate(4248, KoreanDateEraType.Gojoseon, 4, 8);

            Assert.AreEqual("4248/04/08", Date1.ToString("YYYY/MM/DD"));
        }
예제 #4
0
        public void ToString12Test()
        {
            var Date1 = new KoreanDate(4248, KoreanDateEraType.Gojoseon, 4, 8);

            Assert.AreEqual("4248-4-8", Date1.ToString("YYYY-M-D"));
        }
예제 #5
0
        public void ToString8Test()
        {
            var Date1 = new KoreanDate(623, KoreanDateEraType.Joseon, 4, 8);

            Assert.AreEqual("Joseon", Date1.ToString("E"));
        }