public void testBrazilBovespaYear2007() { int year = 2007; 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(19, Month.February, year)); expectedHol.Add(new Date(20, Month.February, year)); expectedHol.Add(new Date(6, Month.April, year)); expectedHol.Add(new Date(1, Month.May, year)); expectedHol.Add(new Date(7, Month.June, year)); expectedHol.Add(new Date(9, Month.July, 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(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); }
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); }
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); }
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); }
public void testBrazilBovespaYear2011() { int year = 2011; List <Date> expectedHol = new List <Date>(); expectedHol.Add(new Date(25, Month.January, year)); 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)); expectedHol.Add(new Date(30, Month.December, year)); // Call the Holiday Check CalendarUtil.CheckHolidayList(expectedHol, _exchange, year); }