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