public void Set_WeekGap_ReturnTrue(int gapTime, int startTime) { string result = CronExpressionHelper.SetWeekGap(gapTime, startTime); var instant = GetInstant; instant[5] = $"{startTime}/{gapTime}"; Assert.Equal(string.Join(" ", instant), result); }
public void Set_WrongWeekGap_ReturnFalse(int gapTime, int startTime) { Action action = () => CronExpressionHelper.SetWeekGap(gapTime, startTime); Assert.Throws <Exception>(action); }