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