public void ShouldRemoveOldestStringWhenAtCapacityAndNewStringIsAdded() { StringStack stringStack = new StringStack(3); stringStack.Push("apple"); stringStack.Push("orange"); stringStack.Push("pineapple"); stringStack.Push("pear"); Assert.AreEqual(3, stringStack.Count); Assert.AreEqual("pear", stringStack.Peek()); }
public void ShouldNotAddEmptyStrings() { StringStack stringStack = new StringStack(); stringStack.Push(""); Assert.AreEqual(0, stringStack.Count); }