public void OnStartQueueShouldBeEmpty() { var queue = new Queueing<String>(); var count = queue.GetItems().Count(); Assert.AreEqual(0,count); }
public void EnqueueShouldAddItemToQueue() { var queue = new Queueing<String>(); queue.Enqueue("TestString"); var count = queue.GetItems().Count(); Assert.AreEqual(1, count); }
public void DequeueShouldRemoveFirstItemInList() { var queue = new Queueing<String>(); queue.Enqueue("TestString"); queue.Enqueue("TestString2"); queue.Dequeue(); var firstQueue = queue.GetFirst(); var count = queue.GetItems().Count(); Assert.AreEqual("TestString2", firstQueue); Assert.AreEqual(1,count); }