public void NullSourcePredicateUsed() { Assert.Throws<ArgumentNullException>("source", () => ((IQueryable<int>)null).FirstOrDefault(i => i != 2)); }