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);
 }
Esempio n. 3
0
 public void ExecutionIsDeferred()
 {
     IEnumerable source = new ThrowingEnumerable();
     // No exception
     source.Cast<string>();
 }