System.SpanTests.SpanTests.CtorArrayIntIntStartTooLarge C# (CSharp) Метод

CtorArrayIntIntStartTooLarge() приватный Метод

private CtorArrayIntIntStartTooLarge ( ) : void
Результат void
        public static void CtorArrayIntIntStartTooLarge()
        {
            int[] a = new int[3];
            Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, 4, 0).DontBox());
        }