예제 #1
0
        private static void Test(int skip, int limit, params int[] expect)
        {
            var stream = PrimeStreaming.Stream();
            var found  = stream.Skip(skip).Take(limit).ToArray();

            CollectionAssert.AreEqual(expect, found);
        }
예제 #2
0
            private void Test(int skip, int limit, params int[] expect)
            {
                var found = PrimeStreaming.Stream().Skip(skip).Take(limit).ToArray();

                Console.WriteLine(found[0]);
                Assert.AreEqual(expect, found);
            }