public void QueueEnqueuesCorrectly() { var queue = new GenericQueueFromLinkedListImplementation <int>(); queue.Enqueue(8); queue.Enqueue(new Node <int>(20)); Assert.Equal(2, queue.Count); }
public void QueueDequeuesCorrectly() { var queue = new GenericQueueFromLinkedListImplementation <int>(new Node <int>(8)); queue.Enqueue(9); queue.Enqueue(19); Assert.Equal(8, queue.Dequeue().Value); }