public void NullIntSourceWithFunc() { Assert.Throws<ArgumentNullException>("source", () => ((IQueryable<int>)null).Average(i => i)); }