public void ExecutionIsDeferred() { var first = new ThrowingEnumerable(); var second = new ThrowingEnumerable(); first.Zip(second, (x, y) => x + y); }
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); }