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

Average18() private method

private Average18 ( ) : void
return void
        public void Average18()
        {
            var val = (new double?[] { 0, 2, 1 }).AsQueryable().Average(n => n);
            Assert.Equal((double)1, val);
        }