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)); }
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)); }