Esempio n. 1
0
        public void Insert_Works_NoEvent(FFXIVRole role)
        {
            var queue = new FFXIV3RoleQueue();

            queue.Enqueue(UserId, role, "");
            queue.Insert(UserId, 0, role);
            Assert.AreEqual(1, queue.GetPosition(UserId, role, null));
        }
Esempio n. 2
0
        public void Insert_Works_Event(FFXIVRole role)
        {
            var queue = new FFXIV3RoleQueue();

            queue.Enqueue(userId, role, eventId);
            queue.Insert(userId, 0, role);
            Assert.AreEqual(1, queue.GetPosition(userId, role, eventId));
        }