Beispiel #1
0
        public void PopTestSuccess()
        {
            var s = new CStack(10);
            s.Push(11);

            Assert.AreEqual(1, s.Size);

            int popRtrn = s.Pop();
            Assert.AreEqual(11, popRtrn);
            Assert.AreEqual(0, s.Size);
        }
Beispiel #2
0
 public void PopTestErrorInvalidOperationException()
 {
     var s = new CStack(10);
     int popRtrn = s.Pop();
 }