public void GetDaysOff_June2019_ReturnsListOf2Elements() { DaysOffData daysOffList = new DaysOffData(2019); IList <IDayOff> list = daysOffList.GetDaysOff(Month.June); Assert.That(list.Count, Is.EqualTo(2)); }
public void GetDaysOff_None2019_ThrowsArgumentException() { DaysOffData daysOffList = new DaysOffData(2019); TestDelegate getList = () => daysOffList.GetDaysOff(Month.None); Assert.That(getList, Throws.ArgumentException); }
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)); }
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)); }