AsAsyncEnumerable.cs 566 B

123456789101112131415161718192021
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT License.
  3. // See the LICENSE file in the project root for more information.
  4. using System.Linq;
  5. using Xunit;
  6. namespace Tests
  7. {
  8. public class AsAsyncEnumerable : AsyncEnumerableTests
  9. {
  10. [Fact]
  11. public void AsAsyncEnumerable1()
  12. {
  13. var xs = Return42;
  14. var ys = xs.AsAsyncEnumerable();
  15. Assert.Same(xs, ys); // NB: Consistent with LINQ to Objects behavior.
  16. }
  17. }
  18. }