public void ThenShouldBeAbleToPushAnItemOntoTheStack() { var theStack = new SimpleStack(); theStack.Push(1); Assert.IsFalse(theStack.IsEmpty); }
public void ThenShouldBeAbleToPushAndPopAnItemFromTheStack() { var theStack = new SimpleStack(); theStack.Push(1); int poppedItem = theStack.Pop(); Assert.AreEqual(1, poppedItem); }
public void ThenItShouldBeEmpty() { SimpleStack theStack = new SimpleStack(); Assert.IsTrue(theStack.IsEmpty); }
public void ThenShouldBeAbleToPushAnItemOntoTheStack() { var theStack = new SimpleStack(); theStack.Push(1); }