public void CheckReverseCopy() { CustomQueue<string> queue = new CustomQueue<string>(); queue.EnQueue("ABC"); queue.EnQueue("XYZ"); List<string> revQueue = queue.ReverseCopy().ToList(); Assert.AreEqual("XYZ", revQueue[0]); }
public void CheckReverseCopy() { CustomQueue<string> queue = new CustomQueue<string>(); queue.EnQueue("ABC"); queue.EnQueue("XYZ"); List<string> revQueue = queue.ReverseCopy().ToList(); Assert.AreEqual("XYZ", revQueue[0]); }