private static void testQueue() { Queue q = new Queue(); string testData = ""; Console.Out.WriteLine("======>Queue Test 1<======"); Console.Out.WriteLine(">>Tests whether or not the addItem and removeItem methods work"); q.addItem("element 1"); testData = q.removeItem(); Console.Out.WriteLine("removeItem() returned: " + testData); Console.Out.Write("Test Passed: "); Console.Out.WriteLine(String.Equals(testData, "element 1") && q.isEmpty()); Console.Out.WriteLine(""); Console.Out.WriteLine("======>Queue Test 2<======"); Console.Out.WriteLine(">>Tests whether or not the getDataAtFront method works"); q.addItem("element 1"); q.addItem("element 2"); q.addItem("element 3"); q.removeItem(); testData = q.itemAtFront(); Console.Out.WriteLine("itemAtFront() returned: " + testData); Console.Out.Write("Test Passed: "); Console.Out.WriteLine(String.Equals(testData, "element 2") && q.isEmpty() == false); Console.Out.WriteLine(""); }