コード例 #1
0
 public void DoesNotIterateForCount()
 {
     IEnumerableWithCount<int> source = new ThrowingEnumerable(10);
     IEnumerableWithCount<int> result = source.Select(x => x * 2);
     Assert.AreEqual(10, result.Count);
 }