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

NullFloatFunc() private method

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