public void MonthTest() { CultureTestData.Default .RunEach(culture => { var calendar = culture.Calendar; for (int i = 1; i <= TimeSpec.MonthsPerYear; i++) { DurationUtil.Month(currentYear, i).Should().Be( TimeSpan.FromDays(calendar.GetDaysInMonth(currentYear, i))); DurationUtil.Month(currentYear, i, calendar).Should().Be( TimeSpan.FromDays(calendar.GetDaysInMonth(currentYear, i))); } }); }