public static void Main(string[] args) { Print(10, FibSupplier.Stream().ToFunc()); Print(20, FibSupplier.Func()); Print(10, PrimesSupplier.Stream().ToFunc()); Print(20, PrimesSupplier.Func()); }
public void StreamTest() { int[] expected = { 0, 1, 1, 2, 3, 5, 8, 13, 21, 34 }; Assert.Equal(expected, FibSupplier.Stream().Take(expected.Length)); }