private SumOfDecimal_SourceIsEmptyCollection_ZeroReturned ( ) : void | ||
return | 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));
}