Ejemplo n.º 1
0
        public void RespondsToCompareScoreAs1WhenMaxScoreHigher()
        {
            var queueScore = new SchedulerQueueScore(20);

            Assert.IsInstanceOf(typeof(SchedulerQueueScore), queueScore);
            Assert.AreEqual(1, queueScore.CompareScore(19));
        }
Ejemplo n.º 2
0
        public void RespondsToCompareScoreAsNegative1WhenMaxScoreLesserThanScore()
        {
            var queueScore = new SchedulerQueueScore(20);

            Assert.IsInstanceOf(typeof(SchedulerQueueScore), queueScore);
            Assert.AreEqual(-1, queueScore.CompareScore(21));
        }
Ejemplo n.º 3
0
        public void RespondsToCompareScoreAs0WhenItsEqual()
        {
            var queueScore = new SchedulerQueueScore(20);

            Assert.IsInstanceOf(typeof(SchedulerQueueScore), queueScore);
            Assert.AreEqual(0, queueScore.CompareScore(20));
        }