System.Linq.Tests.AverageTests.NullFloatFunc C# (CSharp) Méthode

NullFloatFunc() private méthode

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