Ejemplo n.º 1
0
        public void MyStack_Version1_03()
        {
            var solution = new Solution0225.MyStack_Version1();

            solution.Push(1);
            solution.Pop().Should().Be(1);
            solution.Empty().Should().BeTrue();
        }
Ejemplo n.º 2
0
        public void MyStack_Version1_02()
        {
            var solution = new Solution0225.MyStack_Version1();

            solution.Push(1);
            solution.Push(2);
            solution.Pop().Should().Be(2);
            solution.Top().Should().Be(1);
        }