public void pop_single_entry() { LoggerQueue queue = new LoggerQueue(1); queue.add("test"); Assert.IsTrue(queue.isFull()); Console.WriteLine(queue.pop()); Assert.IsTrue(queue.isEmpty()); }
public void fill_queue() { LoggerQueue queue = new LoggerQueue(20); for (int i = 0; i < queue.Size; i++) { queue.add("Testing testing testing..."); } Assert.IsTrue(queue.isFull()); Assert.IsFalse(queue.add("Just one more...")); }