public void WorkingDayDecrementBy5_5()
        {
            var startDate = new DateTime(2004, 5, 24, 18, 5, 0);
            var result    = workdayCalendar.GetWorkdayIncrement(startDate, -5.5);

            Assert.AreEqual(new DateTime(2004, 5, 14, 12, 0, 0).AsNumber(), result.AsNumber());
        }
Beispiel #2
0
        public void WorkdayIncrementByOneDayFromMonday()
        {
            var startDate = new DateTime(2015, 01, 01, 8, 0, 0);

            startDate = startDate.StartOfWeek(DayOfWeek.Monday);
            var incrementResult = workdayCalendar.GetWorkdayIncrement(startDate, 1);

            Assert.AreEqual(startDate.AddHours(8).AsNumber(), incrementResult.AsNumber());
        }