public void NullPredicate() { Expression<Func<int, bool>> predicate = null; Assert.Throws<ArgumentNullException>("predicate", () => Enumerable.Range(0, 3).AsQueryable().First(predicate)); }