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

NullNFloatFunc() private méthode

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