public void Bounded_queue_enqueue() { for (int i = 0; i < OPERATIONS; i++) { boundedQueue.TryPush(msg); } }
public void Setup() { boundedQueue = new BoundedQueue(OPERATIONS); unboundedQueue = new UnboundedQueue <ISignal>(); var msg = Activated.Instance; for (int i = 0; i < OPERATIONS; i++) { boundedQueue.TryPush(msg); unboundedQueue.TryPush(msg); } }
public void BoundedQueue_enqueue_dequeue() { boundedQueue.TryPush(msg); boundedQueue.TryPop(out var signal); }