public void Clear01()
        {
            var hashq = new HashQueue <int>();

            hashq.Enqueue(1);
            hashq.Enqueue(2);
            Assert.IsFalse(hashq.IsEmpty());
            hashq.Clear();
            Assert.IsTrue(hashq.IsEmpty());
            hashq.Enqueue(1);
            hashq.Enqueue(2);
            Assert.IsFalse(hashq.IsEmpty());
        }
示例#2
0
 public static void DropQueue()
 {
     _waitList.Clear();
     _vipQueue.Clear();
 }