public void ExecutionIsDeferred()
 {
     ThrowingEnumerable.AssertDeferred(src => src.Select(x => x * 2));
 }
 public void WithIndexExecutionIsDeferred()
 {
     ThrowingEnumerable.AssertDeferred(src => src.Select((s, index) => s + index));
 }
Exemple #3
0
 public void Have_deffered_execution_when_index_provided()
 {
     ThrowingEnumerable.AssertDeferred(src => src.Where((x, index) => x > 0));
 }
Exemple #4
0
 public void Have_deffered_execution()
 {
     ThrowingEnumerable.AssertDeferred(src => src.Where(x => x > 0));
 }
Exemple #5
0
 public void ExecutionIsDeferred()
 {
     ThrowingEnumerable.AssertDeferred <int>(src => src.Where(x => x > 0));
 }
Exemple #6
0
 public void WithIndexExecutionIsDeferred()
 {
     ThrowingEnumerable.AssertDeferred(src => src.Where((x, index) => x > 0));
 }