Ejemplo n.º 1
0
 /// <inheritDoc/>
 public List <IStory> getSprint(int totalPointsAchievable)
 {
     lock (_lock)
     {
         return(_solver.Solve(totalPointsAchievable, _repository.GetAll()).ToList());
     }
 }
 public void TestSprintSizeBoundaryValues()
 {
     Assert.That(() => _cut.Solve(int.MinValue, Stories), Throws.ArgumentException);
     Assert.That(() => _cut.Solve(-1, Stories), Throws.ArgumentException);
     Assert.That(() => _cut.Solve(0, Stories), Throws.Nothing);
     Assert.That(() => _cut.Solve(int.MaxValue, Stories), Throws.Nothing);
 }