System.Linq.Tests.AverageTests.NullNFloatFunc C# (CSharp) Method

NullNFloatFunc() private method

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