Example #1
0
        public void Stack_Generic_Peek_AllElements(int count)
        {
            PooledStack <T> stack    = GenericStackFactory(count);
            List <T>        elements = stack.ToList();

            foreach (T element in elements)
            {
                Assert.Equal(element, stack.Peek());
                stack.Pop();
            }
        }