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