System.SpanTests.ReadOnlySpanTests.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 ReadOnlySpan<int>(a, 4).DontBox());
        }