示例#1
0
        public void RespondsToCompareScoreAs1WhenMaxScoreHigher()
        {
            var queueScore = new SchedulerQueueScore(20);

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

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

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