public void RespondsToGetScoreAsMinus1WhenThereIsNoScore() { var queueScore = new SchedulerQueueScore(); Assert.IsInstanceOf(typeof(SchedulerQueueScore), queueScore); Assert.AreEqual(-1, queueScore.GetScore(0)); }
public void RespondsToGetScoreWhenThereIsScore() { var queuePosition = 0; var queueScore = new SchedulerQueueScore(); queueScore.RefreshScore(queuePosition, 5); Assert.IsInstanceOf(typeof(SchedulerQueueScore), queueScore); Assert.AreEqual(5, queueScore.GetScore(queuePosition)); }