public void TestCreateNamedQueue()
        {
            MacroscopeNamedQueue <MacroscopeJobItem> NamedQueue = new MacroscopeNamedQueue <MacroscopeJobItem>();

            NamedQueue.CreateNamedQueue(QUEUENAME);
            MacroscopeJobItem JobItem1 = new MacroscopeJobItem("http://www.company.com/");

            NamedQueue.AddToNamedQueue(QUEUENAME, JobItem1);
            Assert.AreEqual(1, NamedQueue.CountNamedQueueItems(QUEUENAME));
        }
        public void TestFailAddingDuplicateToNamedQueue()
        {
            MacroscopeNamedQueue <MacroscopeJobItem> NamedQueue = new MacroscopeNamedQueue <MacroscopeJobItem>();

            NamedQueue.CreateNamedQueue(QUEUENAME, MacroscopeNamedQueue <MacroscopeJobItem> .MODE.USE_HISTORY);
            MacroscopeJobItem JobItem1 = new MacroscopeJobItem("http://www.company.com/");
            MacroscopeJobItem JobItem2 = new MacroscopeJobItem("http://www.company.com/");

            NamedQueue.AddToNamedQueue(QUEUENAME, JobItem1);
            NamedQueue.AddToNamedQueue(QUEUENAME, JobItem2);
            Assert.AreEqual(1, NamedQueue.CountNamedQueueItems(QUEUENAME));
        }
        public void TestAddRemoveAddAgainToNamedQueue()
        {
            MacroscopeNamedQueue <MacroscopeJobItem> NamedQueue = new MacroscopeNamedQueue <MacroscopeJobItem>();

            NamedQueue.CreateNamedQueue(QUEUENAME, MacroscopeNamedQueue <MacroscopeJobItem> .MODE.USE_HISTORY);

            MacroscopeJobItem JobItem1 = new MacroscopeJobItem("http://www.company.com/");

            NamedQueue.AddToNamedQueue(QUEUENAME, JobItem1);

            Assert.AreEqual(1, NamedQueue.CountNamedQueueItems(QUEUENAME));

            MacroscopeJobItem JobItem2 = NamedQueue.GetNamedQueueItem(QUEUENAME);

            Assert.AreEqual(0, NamedQueue.CountNamedQueueItems(QUEUENAME));

            bool Forgotten = NamedQueue.ForgetNamedQueueItem(QUEUENAME, JobItem1);

            NamedQueue.AddToNamedQueue(QUEUENAME, JobItem1);

            Assert.AreEqual(1, NamedQueue.CountNamedQueueItems(QUEUENAME));
        }