private SumOfNullableOfInt_SourceIsEmptyCollection_ZeroReturned ( ) : void | ||
return | void |
public void SumOfNullableOfInt_SourceIsEmptyCollection_ZeroReturned()
{
IQueryable<int?> sourceNullableInt = Enumerable.Empty<int?>().AsQueryable();
Assert.Equal(0, sourceNullableInt.Sum());
Assert.Equal(0, sourceNullableInt.Sum(x => x));
}