Exemplo n.º 1
0
        public void ShouldAddAndContains()
        {
            ProcessingQueue <string, string> queue;

            queue = new ProcessingQueue <string, string>( );
            for (int t = 0; t < 10; t++)
            {
                Assert.IsFalse(queue.Contains(t.ToString()));
                queue.Add(t.ToString());
                Assert.IsTrue(queue.Contains(t.ToString()));
            }
        }