Beispiel #1
0
        public void ScheduleOnlySpecificDays() //defaults 12:00 am on day of
        {
            string result = CronFunctions.GenerateWeeklyExpression(new DayOfWeek[]
                                                                   { DayOfWeek.Friday, DayOfWeek.Wednesday, DayOfWeek.Monday, DayOfWeek.Saturday }
                                                                   );

            //12:00am on mon/wed/fri/sat
            Assert.AreEqual("0 0 0 ? * FRI,WED,MON,SAT", result);
        }