Exemplo n.º 1
0
        public void TestWithEmptyQueue()
        {
            QueueWithTwoStacks<int> queue = new QueueWithTwoStacks<int>();
            queue.AppendTail(1);
            queue.AppendTail(2);

            Assert.AreEqual(1, queue.DeleteHead());
            Assert.AreEqual(2, queue.DeleteHead());
        }
Exemplo n.º 2
0
        public void TestWithEmptyQueue()
        {
            QueueWithTwoStacks <int> queue = new QueueWithTwoStacks <int>();

            queue.AppendTail(1);
            queue.AppendTail(2);

            Assert.AreEqual(1, queue.DeleteHead());
            Assert.AreEqual(2, queue.DeleteHead());
        }
Exemplo n.º 3
0
 public void TestDequeuWithEmptyQueue()
 {
     QueueWithTwoStacks<int> queue = new QueueWithTwoStacks<int>();
     queue.DeleteHead();
 }
Exemplo n.º 4
0
        public void TestDequeuWithEmptyQueue()
        {
            QueueWithTwoStacks <int> queue = new QueueWithTwoStacks <int>();

            queue.DeleteHead();
        }