public void CanGetChineseHolidaysListIn2016()
 {
     var cultureInfo = new WorkingDayCultureInfo("zh-CN");
     Assert.IsNotNull(cultureInfo);
     var holidays = cultureInfo.GetHolidaysOfYear(2016);
     Assert.AreEqual(7, holidays.Count());
 }
 public void Export(WorkingDayCultureInfo dateTimeCultureInfo, int year, TextWriter writer)
 {
     var holidays = dateTimeCultureInfo.GetHolidaysOfYear(year);
     writer.WriteLine(HeaderLineFomat, dateTimeCultureInfo.Name, holidays.Count());
     foreach (var holiday in holidays) {
         var instance = holiday.GetInstance(year);
         if (instance.HasValue) {
             writer.WriteLine(HolidayLineFormat, holiday.Name, instance);
         }
     }
 }
 public void can_generate_holidays()
 {
     var dateTimeCulture = new WorkingDayCultureInfo("ar-SA");
     var year = 2000;
     do
     {
         var holidays = dateTimeCulture.GetHolidaysOfYear(year);
         Assert.Greater(holidays.Count(), 0);
         year++;
     } while (year < 2020);
 }
 public void CanWorkOn2016()
 {
     var dateTimeCulture = new WorkingDayCultureInfo("fr-CA");
     var holidays = dateTimeCulture.GetHolidaysOfYear(2016);
     Assert.IsTrue(holidays.Any());
 }