public void LooksupAliasForRange() { ICronRange actual = TestObject.HandleParse("FRI#5"); Assert.IsInstanceOfType(actual, typeof(NthDayOfWeekRange)); NthDayOfWeekRange range = (NthDayOfWeekRange)actual; Assert.AreEqual(5, range.DayOfWeek); Assert.AreEqual(5, range.NthValue); }
public void ReturnsExpectedRange() { ICronRange actual = TestObject.HandleParse("4#3"); Assert.IsInstanceOfType(actual, typeof(NthDayOfWeekRange)); NthDayOfWeekRange range = (NthDayOfWeekRange)actual; Assert.AreEqual(4, range.DayOfWeek); Assert.AreEqual(3, range.NthValue); }
public void Init() { TestObject = new NthDayOfWeekRange(TestFieldDefinition, TestDayOfWeek, TestStepValue); }