public void ExecutionIsDeferred() { IEnumerable source = new ThrowingEnumerable(); // No exception source.Cast <string>(); }
public void CountDoesNotEnumerate() { IEnumerableWithCount source = new ThrowingEnumerable(7); // No exception IEnumerableWithCount<string> result = source.Cast<string>(); Assert.AreEqual(7, result.Count); }
public void ExecutionIsDeferred() { IEnumerable source = new ThrowingEnumerable(); // No exception source.Cast<string>(); }