Added tests for null list in Min/Max or Default

This commit is contained in:
Mark McDowall 2012-06-26 11:27:03 -07:00
commit a087c89903
2 changed files with 30 additions and 1 deletions

View file

@ -55,6 +55,9 @@ namespace NzbDrone.Core
public static int MaxOrDefault(this IEnumerable<int> ints)
{
if (ints == null)
return 0;
var intList = ints.ToList();
if (!intList.Any())