public static void ToArrayEmpty() { ReadOnlySpan<int> span = ReadOnlySpan<int>.Empty; int[] copy = span.ToArray(); Assert.Equal(0, copy.Length); } }