Ejemplo n.º 1
0
        public void Set_HourGap_ReturnTrue(int gapTime, int startTime)
        {
            string result = CronExpressionHelper.SetHourGap(gapTime, startTime);

            var instant = GetInstant;

            instant[2] = $"{startTime}/{gapTime}";

            Assert.Equal(string.Join(" ", instant), result);
        }
Ejemplo n.º 2
0
        public void Set_WrongHourGap_ReturnFalse(int gapTime, int startTime)
        {
            Action action = () => CronExpressionHelper.SetHourGap(gapTime, startTime);

            Assert.Throws <Exception>(action);
        }