예제 #1
0
        public static void Main(string[] args)
        {
            DAY_OF_WEEK dayOfWeek = DAY_OF_WEEK.FRI;
            string dayString = "";

            switch (dayOfWeek)
            {
                case DAY_OF_WEEK.MON:
                    dayString = "월";
                    break;
                case DAY_OF_WEEK.TUE:
                    dayString = "화";
                    break;
                case DAY_OF_WEEK.WED:
                    dayString = "수";
                    break;
                case DAY_OF_WEEK.TUR:
                    dayString = "목";
                    break;
                case DAY_OF_WEEK.FRI:
                    dayString = "금";
                    break;
                case DAY_OF_WEEK.SAT:
                    dayString = "토";
                    break;
                case DAY_OF_WEEK.SUN:
                    dayString = "일";
                    break;
                default:
                    break;
            }

            Console.WriteLine(dayString);
        }
예제 #2
0
        static void Main(string[] args)
        {
            DAY_OF_WEEK dayofweek = DAY_OF_WEEK.FRI;
            string      dayString = "";

            switch (dayofweek)
            {
            case DAY_OF_WEEK.SUN:
                dayString = "일";
                break;

            case DAY_OF_WEEK.MON:
                dayString = "월";
                break;

            case DAY_OF_WEEK.THU:
                dayString = "화";
                break;

            case DAY_OF_WEEK.WED:
                dayString = "수";
                break;

            case DAY_OF_WEEK.THE:
                dayString = "목";
                break;

            case DAY_OF_WEEK.FRI:
                dayString = "금";
                break;

            case DAY_OF_WEEK.SAT:
                dayString = "토";
                break;
            }

            Console.WriteLine("오늘은 {0} 요일입니다.", dayString);
        }
        public void DayOfWeekTest(long year, long month, double day, bool isGregorianCalendar, DAY_OF_WEEK expectedDayOfWeek)
        {
            var date = new AASDate(year, month, day, isGregorianCalendar);

            Assert.Equal(expectedDayOfWeek, date.DayOfWeek);
        }