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

AddMilliseconds_NewDateOutOfRange_ThrowsArgumentOutOfRangeException() private method

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