public void NextInQueue_DoesNotThrowException_IfTheQueueIsTooShort() { var result = CollectionsExercises.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 = CollectionsExercises.NextInQueue(num, _queue); Assert.AreEqual(expectedQueueCount, _queue.Count); }
public void GivenANumber_NextInQueue_ReturnsCorrectNames(int num, string expectedNames) { var result = CollectionsExercises.NextInQueue(num, _queue); Assert.AreEqual(expectedNames, result); }