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

            var instant = GetInstant;

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

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

            Exception exception = Assert.Throws <IndexOutOfRangeException>(action);
        }