Beispiel #1
0
        public void testBrazilSettlementYear2008()
        {
            int year = 2008;

            List <Date> expectedHol = new List <Date>();

            expectedHol.Add(new Date(1, Month.January, year));
            expectedHol.Add(new Date(4, Month.February, year));
            expectedHol.Add(new Date(5, Month.February, year));
            expectedHol.Add(new Date(21, Month.March, year));
            expectedHol.Add(new Date(21, Month.April, year));
            expectedHol.Add(new Date(1, Month.May, year));
            expectedHol.Add(new Date(22, Month.May, year));
            expectedHol.Add(new Date(25, Month.December, year));

            // Call the Holiday Check
            CalendarUtil.CheckHolidayList(expectedHol, _settlement, year);
        }
Beispiel #2
0
        public void testBrazilSettlementYear2011()
        {
            int year = 2011;

            List <Date> expectedHol = new List <Date>();

            expectedHol.Add(new Date(7, Month.March, year));
            expectedHol.Add(new Date(8, Month.March, year));
            expectedHol.Add(new Date(21, Month.April, year));
            expectedHol.Add(new Date(22, Month.April, year));
            expectedHol.Add(new Date(23, Month.June, year));
            expectedHol.Add(new Date(7, Month.September, year));
            expectedHol.Add(new Date(12, Month.October, year));
            expectedHol.Add(new Date(2, Month.November, year));
            expectedHol.Add(new Date(15, Month.November, year));

            // Call the Holiday Check
            CalendarUtil.CheckHolidayList(expectedHol, _settlement, year);
        }
Beispiel #3
0
        public void testBrazilBovespaYear2005()
        {
            int year = 2005;

            List <Date> expectedHol = new List <Date>();

            expectedHol.Add(new Date(25, Month.January, year));
            expectedHol.Add(new Date(7, Month.February, year));
            expectedHol.Add(new Date(8, Month.February, year));
            expectedHol.Add(new Date(25, Month.March, year));
            expectedHol.Add(new Date(21, Month.April, year));
            expectedHol.Add(new Date(26, Month.May, year));
            expectedHol.Add(new Date(7, Month.September, year));
            expectedHol.Add(new Date(12, Month.October, year));
            expectedHol.Add(new Date(2, Month.November, year));
            expectedHol.Add(new Date(15, Month.November, year));
            expectedHol.Add(new Date(30, Month.December, year));

            // Call the Holiday Check
            CalendarUtil.CheckHolidayList(expectedHol, _exchange, year);
        }
Beispiel #4
0
        public void testBrazilSettlementYear2009()
        {
            int year = 2009;

            List <Date> expectedHol = new List <Date>();

            expectedHol.Add(new Date(1, Month.January, year));
            expectedHol.Add(new Date(23, Month.February, year));
            expectedHol.Add(new Date(24, Month.February, year));
            expectedHol.Add(new Date(10, Month.April, year));
            expectedHol.Add(new Date(21, Month.April, year));
            expectedHol.Add(new Date(1, Month.May, year));
            expectedHol.Add(new Date(11, Month.June, year));
            expectedHol.Add(new Date(7, Month.September, year));
            expectedHol.Add(new Date(12, Month.October, year));
            expectedHol.Add(new Date(2, Month.November, year));
            expectedHol.Add(new Date(25, Month.December, year));

            // Call the Holiday Check
            CalendarUtil.CheckHolidayList(expectedHol, _settlement, year);
        }
Beispiel #5
0
        public void testBrazilBovespaYear2008()
        {
            int year = 2008;

            List <Date> expectedHol = new List <Date>();

            expectedHol.Add(new Date(1, Month.January, year));
            expectedHol.Add(new Date(25, Month.January, year));
            expectedHol.Add(new Date(4, Month.February, year));
            expectedHol.Add(new Date(5, Month.February, year));
            expectedHol.Add(new Date(21, Month.March, year));
            expectedHol.Add(new Date(21, Month.April, year));
            expectedHol.Add(new Date(1, Month.May, year));
            expectedHol.Add(new Date(22, Month.May, year));
            expectedHol.Add(new Date(9, Month.July, year));
            expectedHol.Add(new Date(20, Month.November, year));
            expectedHol.Add(new Date(24, Month.December, year));
            expectedHol.Add(new Date(25, Month.December, year));
            expectedHol.Add(new Date(31, Month.December, year));

            // Call the Holiday Check
            CalendarUtil.CheckHolidayList(expectedHol, _exchange, year);
        }