public void Push_OneElement_ShouldReturnItWhenPeek() { var saq = new SimpleArrayQueue <bool>(); saq.Push(true); Assert.AreEqual(true, saq.Peek()); }
public void Push_OneElement_ShouldReturnItWhenPop() { var saq = new SimpleArrayQueue <bool>(); saq.Push(true); Assert.AreEqual(true, saq.Pop()); Assert.Throws <ArgumentOutOfRangeException>(() => saq.Pop()); }