Exemple #1
0
        public void NextInQueue_DoesNotThrowException_IfTheQueueIsTooShort()
        {
            var result = CollectionsExercise.NextInQueue(7, _queue);

            Assert.AreEqual(0, _queue.Count);
            Assert.AreEqual("Cathy, Jim, Petra, Moxie, Petunia", result);
        }
Exemple #2
0
        public void GivenANumber_NextInQueue_RemoveExpectedNumberFromTheQueue(int num, int expectedQueueCount)
        {
            var result = CollectionsExercise.NextInQueue(num, _queue);

            Assert.AreEqual(expectedQueueCount, _queue.Count);
        }
Exemple #3
0
        public void GivenANumber_NextInQueue_ReturnsCorrectNames(int num, string expectedNames)
        {
            var result = CollectionsExercise.NextInQueue(num, _queue);

            Assert.AreEqual(expectedNames, result);
        }