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