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

CtorArrayIntNegativeStart() private method

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