public void RespondsToCompareScoreAs1WhenMaxScoreHigher() { var queueScore = new SchedulerQueueScore(20); Assert.IsInstanceOf(typeof(SchedulerQueueScore), queueScore); Assert.AreEqual(1, queueScore.CompareScore(19)); }
public void RespondsToCompareScoreAsNegative1WhenMaxScoreLesserThanScore() { var queueScore = new SchedulerQueueScore(20); Assert.IsInstanceOf(typeof(SchedulerQueueScore), queueScore); Assert.AreEqual(-1, queueScore.CompareScore(21)); }
public void RespondsToCompareScoreAs0WhenItsEqual() { var queueScore = new SchedulerQueueScore(20); Assert.IsInstanceOf(typeof(SchedulerQueueScore), queueScore); Assert.AreEqual(0, queueScore.CompareScore(20)); }