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

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

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

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