System.SpanTests.ReadOnlySpanTests.CtorArrayIntIntNegativeLength C# (CSharp) Méthode

CtorArrayIntIntNegativeLength() private méthode

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