Esempio n. 1
0
        public void GetDaysOff_June2019_ReturnsListOf2Elements()
        {
            DaysOffData daysOffList = new DaysOffData(2019);

            IList <IDayOff> list = daysOffList.GetDaysOff(Month.June);

            Assert.That(list.Count, Is.EqualTo(2));
        }
Esempio n. 2
0
        public void GetDaysOff_None2019_ThrowsArgumentException()
        {
            DaysOffData daysOffList = new DaysOffData(2019);

            TestDelegate getList = () => daysOffList.GetDaysOff(Month.None);

            Assert.That(getList, Throws.ArgumentException);
        }
Esempio n. 3
0
        public void GetDaysOff_June2019_ReturnsListWithNewYearsDayAndEpiphany()
        {
            DaysOffData daysOffList = new DaysOffData(2019);

            IList <IDayOff> list = daysOffList.GetDaysOff(Month.June);

            var result = list.Where(d => d.Holiday == Holiday.DescendOfTheHolySpirit || d.Holiday == Holiday.CorpusChristi);

            Assert.That(result.Count, Is.EqualTo(2));
        }
Esempio n. 4
0
        public void GetDaysOff_January2019_ReturnsListWithNewYearsDayAndEpiphany()
        {
            DaysOffData daysOffList = new DaysOffData(2019);

            IList <IDayOff> list = daysOffList.GetDaysOff(Month.January);

            var result = list.Where(d => d.Holiday == Holiday.NewYearsDay || d.Holiday == Holiday.Epiphany);

            Assert.That(result.Count, Is.EqualTo(2));
        }