public static void CtorArrayIntIntStartAndLengthTooLarge()
{
int[] a = new int[3];
Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, 3, 1).DontBox());
Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, 2, 2).DontBox());
Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, 1, 3).DontBox());
Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, 0, 4).DontBox());
Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, int.MaxValue, int.MaxValue).DontBox());
}