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));
 }
示例#2
0
 public static void AddMilliseconds_Invalid(Calendar calendar)
 {
     Assert.Throws<ArgumentException>(() => calendar.AddMilliseconds(calendar.MaxSupportedDateTime, 1));
     Assert.Throws<ArgumentException>(() => calendar.AddMilliseconds(calendar.MinSupportedDateTime, -1));
 }