Example #1
0
        public void CountWorkingDays_Over_Easter()
        {
            var startDate = new DateTime(2021, 03, 31);
            var endDate   = new DateTime(2021, 04, 07);
            var result    = Dates.CountWorkingDaysBetween(startDate, endDate);

            Assert.Equal(2, result);
        }
Example #2
0
        public void CountWorkingDays_Over_Weekend()
        {
            var startDate = new DateTime(2021, 04, 23);
            var endDate   = new DateTime(2021, 04, 27);
            var result    = Dates.CountWorkingDaysBetween(startDate, endDate);

            Assert.Equal(2, result);
        }