public void UnShiftPopTest() { var num = 50000; var lst = new QuickList <int>(); var rand = new Random(); var lst2 = new List <int>(); for (var i = 0; i < num; i++) { var v = rand.Next(); lst.Unshift(v); lst2.Add(v); } foreach (var v in lst2) { Assert.AreEqual(v, lst.Pop()); } Assert.AreEqual(0, lst.Count); Assert.AreEqual(0, lst.Length); }