Ejemplo n.º 1
0
        public static void ConsumeStack()
        {
            var queue = new ConcurrentStack <int>();

            queue.Push(42);
            queue.Push(52);

            var consumer = queue.GetConsumer();

            Collection(consumer, i => Equal(52, i), i => Equal(42, i));
        }