Exemplo n.º 1
0
        public void ExecutionIsDeferred()
        {
            var first  = new ThrowingEnumerable();
            var second = new ThrowingEnumerable();

            first.Zip(second, (x, y) => x + y);
        }
Exemplo n.º 2
0
 public void ExecutionIsDeferredAndCountWorks()
 {
     IEnumerableWithCount<int> first = new ThrowingEnumerable(5);
     IEnumerableWithCount<int> second = new ThrowingEnumerable(7);
     IEnumerableWithCount<int> result = first.Zip(second, (x, y) => x + y);
     Assert.AreEqual(5, result.Count);
 }
Exemplo n.º 3
0
 public void ExecutionIsDeferred()
 {
     var first = new ThrowingEnumerable();
     var second = new ThrowingEnumerable();
     first.Zip(second, (x, y) => x + y);
 }