Ejemplo n.º 1
0
        public void ThenShouldBeAbleToPushAnItemOntoTheStack()
        {
            var theStack = new SimpleStack();
            theStack.Push(1);

            Assert.IsFalse(theStack.IsEmpty);
        }
Ejemplo n.º 2
0
        public void ThenShouldBeAbleToPushAndPopAnItemFromTheStack()
        {
            var theStack = new SimpleStack();
            theStack.Push(1);

            int poppedItem = theStack.Pop();

            Assert.AreEqual(1, poppedItem);
        }
Ejemplo n.º 3
0
        public void ThenItShouldBeEmpty()
        {
            SimpleStack theStack = new SimpleStack();

            Assert.IsTrue(theStack.IsEmpty);
        }
Ejemplo n.º 4
0
 public void ThenShouldBeAbleToPushAnItemOntoTheStack()
 {
     var theStack = new SimpleStack();
     theStack.Push(1);
 }