Esempio n. 1
0
 public static void ToDateTime_WithInvalidYear_Throws(int year)
 {
     AssertExtensions.Throws <ArgumentOutOfRangeException>(nameof(year), () => ISOWeek.ToDateTime(year, 1, DayOfWeek.Friday));
 }
Esempio n. 2
0
 public static void ToDateTime_WithInvalidDayOfWeek_Throws(int dayOfWeek)
 {
     AssertExtensions.Throws <ArgumentOutOfRangeException>(nameof(dayOfWeek), () => ISOWeek.ToDateTime(2018, 1, (DayOfWeek)dayOfWeek));
 }
Esempio n. 3
0
 public static void ToDateTime(int year, int week, DayOfWeek dayOfWeek, DateTime expected)
 {
     Assert.Equal(expected, ISOWeek.ToDateTime(year, week, dayOfWeek));
 }