예제 #1
0
        public void ExecutionIsDeferred()
        {
            IEnumerable source = new ThrowingEnumerable();

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