Пример #1
0
 public void ExecutionIsDeferred()
 {
     IEnumerableWithCount<int> throwingEnumerable = new ThrowingEnumerable(15);
     Assert.AreEqual(15, throwingEnumerable.Count);
     IEnumerableWithCount<int> result = throwingEnumerable.Skip(10);
     Assert.AreEqual(5, result.Count);
 }