updated decision logic to prioritize smaller releases of equal quality.

This commit is contained in:
Keivan Beigi
2013-08-06 17:49:40 -07:00
parent c744a64d4d
commit 9fcd91f2c5
4 changed files with 49 additions and 12 deletions

View File

@@ -271,5 +271,16 @@ namespace NzbDrone.Core.Test
//Resolve
result.Should().Be(0);
}
[TestCase(100,100,100)]
[TestCase(110,100,100)]
[TestCase(199,100,100)]
[TestCase(1000,100,1000)]
[TestCase(0,100,0)]
public void round_to_level(long number, int level, int result)
{
number.Round(level).Should().Be(result);
}
}
}