public void TestMultipleSecondEmptyList() { CronExpressionBuilder bldr = new CronExpressionBuilder(); List<int> desiredSeconds = new List<int>(); bldr.Second(desiredSeconds); }
public void TestMultipleSecondsWithOneInvalid() { CronExpressionBuilder bldr = new CronExpressionBuilder(); List<int> desiredSeconds = new List<int>(); desiredSeconds.Add(17); desiredSeconds.Add(61); bldr.Second(desiredSeconds); }
public void TestMultipleSeconds() { CronExpressionBuilder bldr = new CronExpressionBuilder(); List<int> desiredSeconds = new List<int>(); desiredSeconds.Add(17); desiredSeconds.Add(51); bldr.Second(desiredSeconds); Assert.AreEqual("17,51 * * ? * *", bldr.CronExpression); }
public void TestSpecificSecond() { CronExpressionBuilder bldr = new CronExpressionBuilder(); bldr.Second(10); Assert.AreEqual("10 * * ? * *", bldr.CronExpression); }