public void AsAsyncEnumerable_With_ValueType_Must_ReturnCopy() { // Arrange var source = new int[0]; var wrapped = Wrap.AsAsyncValueEnumerable(source); // Act var result = AsyncValueEnumerable .AsAsyncEnumerable <Wrap.AsyncValueEnumerable <int>, Wrap.AsyncEnumerator <int>, int>(wrapped); // Assert _ = result.Must() .BeEqualTo(wrapped); }
public void AsAsyncEnumerable_With_ReferenceType_Must_ReturnSame() { // Arrange var source = new int[0]; var wrapped = Wrap .AsAsyncValueEnumerable(source) as IAsyncValueEnumerable <int, Wrap.AsyncEnumerator <int> >; // Act var result = AsyncValueEnumerable .AsAsyncEnumerable <IAsyncValueEnumerable <int, Wrap.AsyncEnumerator <int> >, Wrap.AsyncEnumerator <int>, int>(wrapped); // Assert _ = result.Must() .BeSameAs(wrapped); }