예제 #1
0
        public void QueueElement_ElementTest_Direct_1Elem()
        {
            FactoryQueueElement fqe = new FactoryQueueElement(WU1.Name, WU1.Model.GetType(), park, work);

            UF.Queue.Add(fqe);

            FactoryQueueElement fqe2 = UF.Queue[0] as FactoryQueueElement;

            Assert.AreEqual(fqe, fqe2);
        }
예제 #2
0
        public void QueueNotEmpty_DirectQueueAdd()
        {
            FactoryQueueElement fqe = new FactoryQueueElement(WU1.Name, WU1.Model.GetType(), park, work);

            UF.Queue.Add(fqe);

            if (UF.Queue.Count == 0)
            {
                Assert.Fail();
            }
        }