public void ExecutionIsDeferred()
 {
     ThrowingEnumerable.AssertDeferred(src => src.Where((x, i) => x > 0));
 }
 public void ExecutionIsDeferred()
 {
     ThrowingEnumerable.AssertDeferred(src => src.Select(x => x * 2));
 }
 public void WithIndexExecutionIsDeferred()
 {
     ThrowingEnumerable.AssertDeferred(src => src.Select((x, index) => x + index));
 }
Beispiel #4
0
 public void WithIndexExecutionIsDeferred()
 {
     ThrowingEnumerable.AssertDeferred(src => new WhereIndexEnumerable <ThrowingEnumerable, ThrowingEnumerable.Enumerator, int, PredicateGreaterThan>(new ThrowingEnumerable(), new PredicateGreaterThan(0)));
 }
Beispiel #5
0
 public void ExecutionIsDeferred()
 {
     ThrowingEnumerable.AssertDeferred(src =>
                                       new SelectEnumerable <ThrowingEnumerable, ThrowingEnumerable.Enumerator, int, int, DelegateFuncToStructOperatorAction <int, int> >(src, new DelegateFuncToStructOperatorAction <int, int>(x => x * 2)));
 }
Beispiel #6
0
 public void WithIndexExecutionIsDeferred()
 {
     ThrowingEnumerable.AssertDeferred(src =>
                                       new SelectIndexEnumerable <ThrowingEnumerable, ThrowingEnumerable.Enumerator, int, long, DelegateFuncToSelectIndexStructOperator <int, long> >(src, new DelegateFuncToSelectIndexStructOperator <int, long>((x, index) => x + index)));
 }