Exemplo n.º 1
0
        public void EventDatesBetweenEmpty()
        {
            CalendarDateTime.ClearCalendar();
            DefinedCalendars.USA.Holidays.ThanksgivingDay(true);
            var expected = new List <DateTime>();
            var actual   = CalendarDateTime.EventDatesBetween(null);

            Assert.Equal(expected, actual);
        }
Exemplo n.º 2
0
        public void EventDatesBetweenDated()
        {
            const string name     = "Seventies";
            var          expected = new List <DateTime> {
                new DateTime(1970, 1, 1)
            };

            CalendarDateTime.ClearCalendar();
            CalendarDateTime.AddDateEvent(name, false, expected[0]);
            var actual = CalendarDateTime.EventDatesBetween(name);

            Assert.Equal(expected, actual);
        }