예제 #1
0
        public void TestGetMonthDayList()
        {
            var January   = PMTCalendar.GetMonthDayList(1, 2020);
            var Febuary   = PMTCalendar.GetMonthDayList(2, 2020);
            var March     = PMTCalendar.GetMonthDayList(3, 2020);
            var April     = PMTCalendar.GetMonthDayList(4, 2020);
            var May       = PMTCalendar.GetMonthDayList(5, 2020);
            var June      = PMTCalendar.GetMonthDayList(6, 2020);
            var July      = PMTCalendar.GetMonthDayList(7, 2020);
            var August    = PMTCalendar.GetMonthDayList(8, 2020);
            var September = PMTCalendar.GetMonthDayList(9, 2020);
            var October   = PMTCalendar.GetMonthDayList(10, 2020);
            var November  = PMTCalendar.GetMonthDayList(11, 2020);
            var December  = PMTCalendar.GetMonthDayList(12, 2020);

            Console.WriteLine("January: " + January.Count());
            Console.WriteLine("Febuary: " + Febuary.Count());
            Console.WriteLine("March: " + March.Count());
            Console.WriteLine("April: " + April.Count());
            Console.WriteLine("May: " + May.Count());
            Console.WriteLine("June: " + June.Count());
            Console.WriteLine("July: " + July.Count());
            Console.WriteLine("August: " + August.Count());
            Console.WriteLine("September: " + September.Count());
            Console.WriteLine("October: " + October.Count());
            Console.WriteLine("November: " + November.Count());
            Console.WriteLine("December: " + December.Count());
        }
예제 #2
0
        public void TestGetListofMonths()
        {
            var test = PMTCalendar.GetMonthList();

            foreach (var t in test)
            {
                Console.WriteLine(t.Name + " : " + t.Value);
            }
        }