You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Holiday.HolidayDate is returning ObservedDate and not the "Original" date. When checking all holidays that fall over weekends, Holiday.HolidayDate and Holiday.ObservedDate are always the same (i.e. they both return the observed date)
The text was updated successfully, but these errors were encountered:
varactual=USAPublicHoliday.NewYear(2023);Assert.AreEqual(newDateTime(2023,1,2),actual.ObservedDate,"1st January is Sunday, so observed on Monday");Assert.AreEqual(newDateTime(2023,1,1),actual.HolidayDate,"1st January is Sunday, available on Holiday date");Assert.AreEqual(newDateTime(2023,1,2),actual,"Implicit conversion to observed date");//list of holidaysvarhols=newUSAPublicHoliday().PublicHolidaysInformation(2023);varnewYear=hols.First();Assert.AreEqual(newDateTime(2023,1,2),newYear.ObservedDate,"1st January is Sunday, so observed on Monday");Assert.AreEqual(newDateTime(2023,1,1),newYear.HolidayDate,"1st January is Sunday, available on Holiday date");
Holiday.HolidayDate is returning ObservedDate and not the "Original" date. When checking all holidays that fall over weekends, Holiday.HolidayDate and Holiday.ObservedDate are always the same (i.e. they both return the observed date)
The text was updated successfully, but these errors were encountered: