Exemplo n.º 1
0
        public void ExecutionIsDeferred()
        {
            IEnumerable source = new ThrowingEnumerable();

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