Пример #1
0
        public void SimpleTestForOneList(bool expected, int start, int end)
        {
            var list = new List <Leave>()
            {
                new Leave {
                    StartDate = new DateTime(2019, 1, start), EndDate = new DateTime(2019, 1, end)
                }
            };

            Assert.Equal(expected, LeavesValidator.ValidateLeaves(list));
        }
Пример #2
0
        public void NormalTestForOneList(bool expected, int start1, int end1, int start2, int end2)
        {
            var list = new List <Leave>()
            {
                new Leave {
                    StartDate = new DateTime(2019, 1, start1), EndDate = new DateTime(2019, 1, end1)
                },
                new Leave {
                    StartDate = new DateTime(2019, 1, start2), EndDate = new DateTime(2019, 1, end2)
                }
            };

            Assert.Equal(expected, LeavesValidator.ValidateLeaves(list));
        }