System.SpanTests.SpanTests.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 Span<int>(a, -1).DontBox());
        }