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