System.Linq.Tests.SumTests.SumOfNullableOfFloat_SourceIsEmptyCollection_ZeroReturned C# (CSharp) Method

SumOfNullableOfFloat_SourceIsEmptyCollection_ZeroReturned() private method

        public void SumOfNullableOfFloat_SourceIsEmptyCollection_ZeroReturned()
        {
            IQueryable<float?> sourceNullableFloat = Enumerable.Empty<float?>().AsQueryable();
            Assert.Equal(0f, sourceNullableFloat.Sum());
            Assert.Equal(0f, sourceNullableFloat.Sum(x => x));
        }
SumTests