public void Dequeue_EmptyCollection_ThrowsException() { Task2.Queue <int> queue = new Task2.Queue <int>(); Assert.Throws <InvalidOperationException>(() => queue.Dequeue()); }
public void Dequeue_ValidData_ValidResult(int[] array, IEnumerable <int> collection) { Task2.Queue <int> queue = new Task2.Queue <int>(collection); queue.Dequeue(); CollectionAssert.AreEquivalent(array, queue); }