Exemple #1
0
        public void DropUnconfirmed_DoesNothing_NoEvent()
        {
            var queue = new TestQueue();

            queue.Enqueue(UserId, FFXIVRole.DPS, null);
            queue.Enqueue(0, FFXIVRole.Tank, "");
            queue.Enqueue(1, FFXIVRole.Healer, null);
            queue.Enqueue(2, FFXIVRole.Healer, null);
            queue.Enqueue(3, FFXIVRole.Tank, null);
            queue.DropUnconfirmed(null);
            Assert.IsNotEmpty(queue.GetAllSlots());
        }
Exemple #2
0
        public void DropUnconfirmed_Works_Event()
        {
            var queue = new TestQueue();

            queue.Enqueue(UserId, FFXIVRole.DPS, EventId);
            queue.Enqueue(0, FFXIVRole.Tank, EventId);
            queue.Enqueue(1, FFXIVRole.Healer, EventId);
            queue.Enqueue(2, FFXIVRole.Healer, EventId);
            queue.Enqueue(3, FFXIVRole.Tank, EventId);
            queue.DropUnconfirmed(EventId);
            Assert.IsEmpty(queue.GetAllSlots());
        }