Example #1
0
        public void Multi_Enqueue_Works_Test()
        {
            //arrange
            pseudoQueue <int> testPQ = new DSA.pseudoQueue <int>();

            //act
            testPQ.enqueue(563);
            testPQ.enqueue(564);
            testPQ.enqueue(565);
            testPQ.enqueue(566);

            //Assert
            Assert.Equal(566, testPQ.peekRear());
        }
Example #2
0
        public void Dequeue_Works_Test()
        {
            //arrange
            pseudoQueue <int> testPQ = new DSA.pseudoQueue <int>();

            testPQ.enqueue(563);
            //act
            int actual = testPQ.dequeue();

            //Assert
            Assert.Equal(563, actual);
        }