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

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

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