System.SpanTests.SpanTests.CtorArrayIntStartTooLarge C# (CSharp) Method

CtorArrayIntStartTooLarge() private method

private CtorArrayIntStartTooLarge ( ) : void
return void
        public static void CtorArrayIntStartTooLarge()
        {
            int[] a = new int[3];
            Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, 4).DontBox());
        }