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); }
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); }