예제 #1
0
 public void TestSecondsPastTheMinuteInterval()
 {
     Assert.EqualsCaseInsensitive("A los 10 segundos del minuto, cada 5 minutos", GetDescription("10 0/5 * * * ?"));
 }
예제 #2
0
 public void TestTwoMonthsOnly()
 {
     Assert.EqualsCaseInsensitive("Cada minuto, sólo en marzo y junio", GetDescription("* * * 3,6 *"));
 }
예제 #3
0
 public void TestThreeTimesDaily()
 {
     Assert.EqualsCaseInsensitive("В 06:30, 14:30 и 16:30", GetDescription("30 6,14,16 * * *"));
 }
예제 #4
0
 public void TestWeekdaysAtTime()
 {
     Assert.EqualsCaseInsensitive("A las 11:30 AM, de lunes a viernes", GetDescription("30 11 * * 1-5"));
 }
예제 #5
0
 public void TestMinuteSpan()
 {
     Assert.EqualsCaseInsensitive("Cada minuto entre las 11:00 AM y las 11:10 AM", GetDescription("0-10 11 * * *"));
 }
예제 #6
0
 public void TestEverySecond()
 {
     Assert.EqualsCaseInsensitive("Cada segundo", GetDescription("* * * * * *"));
 }
예제 #7
0
 public void TestEvery5Minutes()
 {
     Assert.EqualsCaseInsensitive("Cada 5 minutos", GetDescription("*/5 * * * *"));
     Assert.EqualsCaseInsensitive("Cada 10 minutos", GetDescription("0 0/10 * * * ?"));
 }
예제 #8
0
 public void TestYearRange2()
 {
     Assert.EqualsCaseInsensitive("A las 12:23 PM, de enero a febrero, de 2013 a 2014", GetDescription("23 12 * JAN-FEB * 2013-2014"));
 }
예제 #9
0
 public void TestYearRange3()
 {
     Assert.EqualsCaseInsensitive("A las 12:23 PM, de enero a marzo, de 2013 a 2015", GetDescription("23 12 * JAN-MAR * 2013-2015"));
 }
예제 #10
0
 public void TestOneYearOnlyWithoutSeconds()
 {
     Assert.EqualsCaseInsensitive("Cada minuto, sólo en 2013", GetDescription("* * * * * 2013"));
 }
예제 #11
0
 public void TestTwoYearsOnly()
 {
     Assert.EqualsCaseInsensitive("Cada minuto, sólo en 2013 y 2014", GetDescription("* * * * * 2013,2014"));
 }
예제 #12
0
 public void TestMinutesPastTheHour()
 {
     Assert.EqualsCaseInsensitive("A los 5 minutos de la hora", GetDescription("0 5 0/1 * * ?"));
 }
예제 #13
0
 public void TestRecurringFirstOfMonth()
 {
     Assert.EqualsCaseInsensitive("A las 06:00 AM", GetDescription("0 0 6 1/1 * ?"));
 }
예제 #14
0
 public void TestBetweenWithInterval()
 {
     Assert.EqualsCaseInsensitive("Cada 3 minutos, del minuto 2 al 59 pasada la hora, a las 01:00 AM, 09:00 AM, y 10:00 PM, entre los días 11 y 26 del mes, de enero a junio", GetDescription("2-59/3 1,9,22 11-26 1-6 ?"));
 }
예제 #15
0
 public void TestYearInternalWithStepValue()
 {
     Assert.EqualsCaseInsensitive("A las 07:05 AM, cada 4 años, de 2016 a 9999", GetDescription("0 5 7 ? * ? 2016/4"));
 }
예제 #16
0
 public void TestEveryHour()
 {
     Assert.EqualsCaseInsensitive("Cada hora", GetDescription("0 0 * * * ?"));
     Assert.EqualsCaseInsensitive("Cada hora", GetDescription("0 0 0/1 * * ?"));
 }
예제 #17
0
 public void TestTimeOfDayCertainDaysOfWeek()
 {
     Assert.EqualsCaseInsensitive("A las 11:00 PM, de lunes a viernes", GetDescription("0 23 ? * MON-FRI"));
 }
예제 #18
0
 public void TestSecondsInternalWithStepValue()
 {
     // GitHub Issue #49: https://github.com/bradyholt/cron-expression-descriptor/issues/49
     Assert.EqualsCaseInsensitive("Cada 30 segundos, comenzando a los 5 segundos del minuto", GetDescription("5/30 * * * * ?"));
 }
예제 #19
0
 public void TestEvery45Seconds()
 {
     Assert.EqualsCaseInsensitive("Cada 45 segundos", GetDescription("*/45 * * * * *"));
 }
예제 #20
0
 public void TestMinutesInternalWithStepValue()
 {
     Assert.EqualsCaseInsensitive("Cada 30 minutos, comenzando a los 5 minutos de la hora", GetDescription("0 5/30 * * * ?"));
 }
예제 #21
0
 public void TestEvery5MinutesOnTheSecond()
 {
     Assert.EqualsCaseInsensitive("Cada 5 minutos", GetDescription("0 */5 * * * *"));
 }
예제 #22
0
 public void TestHoursInternalWithStepValue()
 {
     Assert.EqualsCaseInsensitive("Cada segundo, cada 8 horas, comenzando a las 05:00 AM", GetDescription("* * 5/8 * * ?"));
 }
예제 #23
0
 public void TestDailyAtTime()
 {
     Assert.EqualsCaseInsensitive("A las 11:30 AM", GetDescription("30 11 * * *"));
 }
예제 #24
0
 public void TestDayOfMonthInternalWithStepValue()
 {
     Assert.EqualsCaseInsensitive("A las 07:05 AM, cada 3 días, comenzando el día 2 del mes", GetDescription("0 5 7 2/3 * ? *"));
 }
예제 #25
0
 public void TestOneMonthOnly()
 {
     Assert.EqualsCaseInsensitive("Cada minuto, sólo en marzo", GetDescription("* * * 3 *"));
 }
예제 #26
0
 public void TestMonthInternalWithStepValue()
 {
     Assert.EqualsCaseInsensitive("A las 07:05 AM, cada 2 meses, de marzo a diciembre", GetDescription("0 5 7 ? 3/2 ? *"));
 }
예제 #27
0
 public void TestTwoTimesEachAfternoon()
 {
     Assert.EqualsCaseInsensitive("A las 02:30 PM y 04:30 PM", GetDescription("30 14,16 * * *"));
 }
예제 #28
0
 public void TestDayOfWeekInternalWithStepValue()
 {
     Assert.EqualsCaseInsensitive("A las 07:05 AM, cada 3 días de la semana, de martes a sábado", GetDescription("0 5 7 ? * 2/3 *"));
 }
예제 #29
0
 public void TestOnceAWeek()
 {
     Assert.EqualsCaseInsensitive("В 09:46, только в понедельник", GetDescription("46 9 * * 1"));
 }
예제 #30
0
 public void TestMinutesPastTheHourRange()
 {
     Assert.EqualsCaseInsensitive("A los 30 minutos de la hora, entre las 10:00 AM y las 01:59 PM, sólo el miércoles y viernes", GetDescription("0 30 10-13 ? * WED,FRI"));
 }