Exemple #1
0
        public void Dequeue_Normal_DoesNotPullForEvent(FFXIVRole role)
        {
            var queue          = new FFXIV3RoleQueue();
            var enqueueSuccess = queue.Enqueue(UserId, role, EventId);

            Assert.IsTrue(enqueueSuccess);

            var outUId = queue.Dequeue(role, null);

            Assert.IsNull(outUId);
        }
Exemple #2
0
        public void Dequeue_Normal_PullsForNormal(FFXIVRole role)
        {
            var queue          = new FFXIV3RoleQueue();
            var enqueueSuccess = queue.Enqueue(userId, role, null);

            Assert.IsTrue(enqueueSuccess);

            var outUId = queue.Dequeue(role, null);

            Assert.IsNotNull(outUId);
        }
Exemple #3
0
        public void Queue_NoParameters_MaintainsState_EmptyEvent(FFXIVRole role)
        {
            var queue          = new FFXIV3RoleQueue();
            var enqueueSuccess = queue.Enqueue(userId, role, "");

            Assert.IsTrue(enqueueSuccess);
            var outUId = queue.Dequeue(role, "");

            Assert.IsTrue(outUId.HasValue);
            Assert.AreEqual(userId, outUId.Value);
        }
Exemple #4
0
        public void Dequeue_Event_PullsForEvent(FFXIVRole role)
        {
            var queue          = new FFXIV3RoleQueue();
            var enqueueSuccess = queue.Enqueue(userId, role, eventId);

            Assert.IsTrue(enqueueSuccess);

            var outUId = queue.Dequeue(role, eventId);

            Assert.IsNotNull(outUId);
        }