Ejemplo n.º 1
0
        public void RecursionTest(int start, string output)
        {
            var sourceSequence = new EnumerateSingle <int>(start);

            Assert.Equal(output, OutputSequence(sourceSequence.SelectRecursive(CreateSequence)));
            Assert.Equal(output,
                         OutputSequence(new RecursiveSelector <int>(sourceSequence, CreateSequence)));
        }
Ejemplo n.º 2
0
        public void ResetValue()
        {
            var iter = new EnumerateSingle <int>(1).GetEnumerator();

            TryIteratorFunctions(iter);
            iter.Reset();
            TryIteratorFunctions(iter);
        }