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

CtorArrayIntIntNegativeLength() private method

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