Selaa lähdekoodia

Moving Return tests.

Bart De Smet 8 vuotta sitten
vanhempi
sitoutus
b286e44eb5

+ 0 - 7
Ix.NET/Source/System.Interactive.Async.Tests/AsyncTests.Creation.cs

@@ -29,13 +29,6 @@ namespace Tests
             AssertThrows<NotSupportedException>(() => enu.GetAsyncEnumerator());
         }
 
-        [Fact]
-        public void Return()
-        {
-            var xs = AsyncEnumerable.Return(42);
-            HasNext(xs.GetAsyncEnumerator(), 42);
-        }
-
         [Fact]
         public void Throw_Null()
         {

+ 19 - 0
Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/Return.cs

@@ -0,0 +1,19 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information. 
+
+using System.Linq;
+using Xunit;
+
+namespace Tests
+{
+    public class Return : AsyncEnumerableTests
+    {
+        [Fact]
+        public void Return1()
+        {
+            var xs = AsyncEnumerable.Return(42);
+            HasNext(xs.GetAsyncEnumerator(), 42);
+        }
+    }
+}