コード例 #1
0
 public void ExecutionIsDeferred()
 {
     IEnumerableWithCount<int> throwingEnumerable = new ThrowingEnumerable(15);
     Assert.AreEqual(15, throwingEnumerable.Count);
     IEnumerableWithCount<int> result = throwingEnumerable.Take(10);
     Assert.AreEqual(10, result.Count);
 }