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

            Assert.IsTrue(enqueueSuccess);

            var pos1 = queue.GetPosition(UserId, role, null);

            Assert.AreEqual(0, pos1);
            var pos2 = queue.GetPosition(UserId, role, EventId);

            Assert.AreEqual(1, pos2);

            var count1 = queue.Count(role, null);

            Assert.AreEqual(0, count1);
            var count2 = queue.Count(role, EventId);

            Assert.AreEqual(1, count2);
        }