System.SpanTests.SpanTests.CtorArrayIntIntStartTooLarge C# (CSharp) Method

CtorArrayIntIntStartTooLarge() private method

private CtorArrayIntIntStartTooLarge ( ) : void
return void
        public static void CtorArrayIntIntStartTooLarge()
        {
            int[] a = new int[3];
            Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, 4, 0).DontBox());
        }