System.Linq.Tests.SumTests.SumOfLong_SourceIsEmptyCollection_ZeroReturned C# (CSharp) 메소드

SumOfLong_SourceIsEmptyCollection_ZeroReturned() 개인적인 메소드

private SumOfLong_SourceIsEmptyCollection_ZeroReturned ( ) : void
리턴 void
        public void SumOfLong_SourceIsEmptyCollection_ZeroReturned()
        {
            IQueryable<long> sourceLong = Enumerable.Empty<long>().AsQueryable();
            Assert.Equal(0L, sourceLong.Sum());
            Assert.Equal(0L, sourceLong.Sum(x => x));
        }
SumTests