public void Set_SecondCycle_ReturnTrue(int startTime, int endTime) { string result = CronExpressionHelper.SetSecondCycle(startTime, endTime); var instant = GetInstant; instant[0] = $"{startTime}-{endTime}"; Assert.Equal(string.Join(" ", instant), result); }
public void Set_WrongSecondCycle_ReturnFalse(int startTime, int endTime) { Action action = () => CronExpressionHelper.SetSecondCycle(startTime, endTime); Exception exception = Assert.Throws <Exception>(action); }