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

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

private SumOfDecimal_SourceIsEmptyCollection_ZeroReturned ( ) : void
Результат void
        public void SumOfDecimal_SourceIsEmptyCollection_ZeroReturned()
        {
            IQueryable<decimal> sourceDecimal = Enumerable.Empty<decimal>().AsQueryable();
            Assert.Equal(0m, sourceDecimal.Sum());
            Assert.Equal(0m, sourceDecimal.Sum(x => x));
        }
SumTests