示例#1
0
        public void Pascoa_OK()
        {
            List <DateTime> date = new List <DateTime>();

            date.Add(new DateTime(2006, 04, 16));
            date.Add(new DateTime(2019, 04, 21));
            date.Add(new DateTime(2020, 04, 12));
            date.Add(new DateTime(1980, 04, 06));
            date.Add(new DateTime(1986, 03, 30));

            foreach (var item in date)
            {
                var result = Holidays.CalculoPascoa(item.Year);
                Assert.AreEqual(item, result);
            }
        }