System.Tests.DateTimeTests.AddMilliseconds_NewDateOutOfRange_ThrowsArgumentOutOfRangeException C# (CSharp) Method

AddMilliseconds_NewDateOutOfRange_ThrowsArgumentOutOfRangeException() private method

        public static void AddMilliseconds_NewDateOutOfRange_ThrowsArgumentOutOfRangeException()
        {
            Assert.Throws<ArgumentOutOfRangeException>("value", () => DateTime.MaxValue.AddMilliseconds(1));
            Assert.Throws<ArgumentOutOfRangeException>("value", () => DateTime.MinValue.AddMilliseconds(-1));
        }
DateTimeTests