public void CircularQueueEmptyandGetCount() { int maxSize = 100; var myQueue = new MyCircularQueue(maxSize); Assert.AreEqual(0, myQueue.GetCount()); }
public void CircularQueuePushGetCount() { int maxSize = 100; var myQueue = new MyCircularQueue(maxSize); myQueue.Push(1); Assert.AreEqual(1, myQueue.GetCount()); }
public void CircularQueuePush3ItemAndPopGetCount() { int maxSize = 100; var myQueue = new MyCircularQueue(maxSize); myQueue.Push(1); myQueue.Push("1"); myQueue.Push("A"); var obj = myQueue.Pop(); Assert.AreEqual(1, obj); Assert.AreEqual(2, myQueue.GetCount()); }