System.Linq.Tests.SumTests.SumOfNullableOfLong_SourceIsEmptyCollection_ZeroReturned C# (CSharp) Метод

SumOfNullableOfLong_SourceIsEmptyCollection_ZeroReturned() приватный Метод

private SumOfNullableOfLong_SourceIsEmptyCollection_ZeroReturned ( ) : void
Результат void
        public void SumOfNullableOfLong_SourceIsEmptyCollection_ZeroReturned()
        {
            IQueryable<long?> sourceNullableLong = Enumerable.Empty<long?>().AsQueryable();
            Assert.Equal(0L, sourceNullableLong.Sum());
            Assert.Equal(0L, sourceNullableLong.Sum(x => x));
        }
SumTests