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