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

            Assert.IsInstanceOf(typeof(SchedulerQueueScore), queueScore);
            Assert.AreEqual(-1, queueScore.GetScore(0));
        }
示例#2
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));
        }