예제 #1
0
        public void ReturnsExpectedRange()
        {
            ICronRange actual = TestObject.HandleParse("5W");

            Assert.IsInstanceOfType(actual, typeof(NearestWeekdayRange));
            NearestWeekdayRange range = (NearestWeekdayRange)actual;

            Assert.AreEqual(5, range.DayOfMonth);
        }
예제 #2
0
        public void ParsesCaseInsensitive()
        {
            ICronRange actual = TestObject.HandleParse("3w");

            Assert.IsInstanceOfType(actual, typeof(NearestWeekdayRange));
            NearestWeekdayRange range = (NearestWeekdayRange)actual;

            Assert.AreEqual(3, range.DayOfMonth);
        }
예제 #3
0
 public void Init()
 {
     TestObject = new NearestWeekdayRange(TestFieldDefinition, TestDayOfMonth);
 }