public void NextInQueue_DoesNotThrowException_IfTheQueueIsTooShort() { var result = CollectionsExercise.NextInQueue(7, _queue); Assert.AreEqual(0, _queue.Count); Assert.AreEqual("Cathy, Jim, Petra, Moxie, Petunia", result); }
public void GivenANumber_NextInQueue_RemoveExpectedNumberFromTheQueue(int num, int expectedQueueCount) { var result = CollectionsExercise.NextInQueue(num, _queue); Assert.AreEqual(expectedQueueCount, _queue.Count); }
public void GivenANumber_NextInQueue_ReturnsCorrectNames(int num, string expectedNames) { var result = CollectionsExercise.NextInQueue(num, _queue); Assert.AreEqual(expectedNames, result); }