Exemplo n.º 1
0
        public void Simple_PeekAndPeekItem_Test()
        {
            //  Arrange
            var stack = new CheckedLayeredStack <string>();

            //  Act
            stack.Push("a");
            stack.Push("b");
            var b = stack.Peek();
            var a = stack.PeekItem(1);

            //  Assert
            Assert.Equal("b", b);
            Assert.Equal("a", a);
        }