System.SpanTests.ReadOnlySpanTests.CtorArrayIntIntNegativeStart C# (CSharp) Method

CtorArrayIntIntNegativeStart() private method

private CtorArrayIntIntNegativeStart ( ) : void
return void
        public static void CtorArrayIntIntNegativeStart()
        {
            int[] a = new int[3];
            Assert.Throws<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a, -1, 0).DontBox());
        }