public static void AddMilliseconds_Invalid(Calendar calendar) { AssertExtensions.Throws <ArgumentException>(null, () => calendar.AddMilliseconds(calendar.MaxSupportedDateTime, 1)); AssertExtensions.Throws <ArgumentException>(null, () => calendar.AddMilliseconds(calendar.MinSupportedDateTime, -1)); }
public static void AddMilliseconds_Invalid(Calendar calendar) { Assert.Throws<ArgumentException>(() => calendar.AddMilliseconds(calendar.MaxSupportedDateTime, 1)); Assert.Throws<ArgumentException>(() => calendar.AddMilliseconds(calendar.MinSupportedDateTime, -1)); }