Exemplo n.º 1
0
        public static void Main()
        {
            var s = File.OpenRead("TextFile1.txt");
            IEnumerable <int> it = new SolutionIter(s);

            int[] arr = it.ToArray();
        }
Exemplo n.º 2
0
        public void TestSolution2(string input, params int[] expectedValue)
        {
            byte[] bytArr = Encoding.UTF8.GetBytes(input);
            var    bg     = new SolutionIter(new MemoryStream(bytArr));
            int    i      = 0;

            foreach (int n in bg)
            {
                Assert.AreEqual(expectedValue[i++], n);
            }
        }