Ejemplo n.º 1
0
        public void Set_SpecificWeek_ReturnTrue(params int[] input)
        {
            string result = CronExpressionHelper.SetSpecificWeek(input);

            var instant = GetInstant;

            instant[5] = string.Join(",", input);

            Assert.Equal(string.Join(" ", instant), result);
        }
Ejemplo n.º 2
0
        public void Set_WrongSpecificWeekFunc_ReturnFalse(params int[] input)
        {
            Action action = () => CronExpressionHelper.SetSpecificWeek(input);

            Assert.Throws <IndexOutOfRangeException>(action);
        }