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