public void ReturnsExpectedRange() { ICronRange actual = TestObject.HandleParse("5W"); Assert.IsInstanceOfType(actual, typeof(NearestWeekdayRange)); NearestWeekdayRange range = (NearestWeekdayRange)actual; Assert.AreEqual(5, range.DayOfMonth); }
public void ParsesCaseInsensitive() { ICronRange actual = TestObject.HandleParse("3w"); Assert.IsInstanceOfType(actual, typeof(NearestWeekdayRange)); NearestWeekdayRange range = (NearestWeekdayRange)actual; Assert.AreEqual(3, range.DayOfMonth); }
public void Init() { TestObject = new NearestWeekdayRange(TestFieldDefinition, TestDayOfMonth); }