Beispiel #1
0
 public void ThrowsOnNullPredicateIndexed()
 {
     IQueryable<int> source = new[] { 1, 2, 3 }.AsQueryable();
     Expression<Func<int, int, bool>> nullPredicate = null;
     Assert.Throws<ArgumentNullException>("predicate", () => source.TakeWhile(nullPredicate));
 }