Exemple #1
0
        static void TestListDequeue()
        {
            DEQueue cQ = new DEQueue();

            Console.Write("\nNow testing list function:\n\n");
            cQ.AddLeft(33);
            cQ.AddRight(43);
            cQ.AddLeft(34);
            cQ.AddRight(47);;
            Console.Write("listing left to right:\n  should be   34 33 43 47 \n");
            Console.Write("  actually is " + cQ.ListLeftRight());

            Console.Write("\nEnd of testing list functions\n\n");
        }