public async ValueTask AsAsyncValueEnumerable_With_ToArrayAsync_Must_Succeed(int[] source) { // Arrange var wrapped = Wrap.AsValueEnumerable(source); var expected = System.Linq.Enumerable.ToArray(source); // Act var result = await ValueEnumerable .AsAsyncValueEnumerable <Wrap.ValueEnumerable <int>, Wrap.Enumerator <int>, int>(wrapped) .ToArrayAsync(); // Assert _ = result.Must() .BeArrayOf <int>() .BeEqualTo(expected); }