public void NullNFloatFunc() { Expression<Func<float?, float?>> selector = null; Assert.Throws<ArgumentNullException>("selector", () => Enumerable.Empty<float?>().AsQueryable().Average(selector)); }