CreateQueue() public method

Creates a message queue with the specified name.
public CreateQueue ( string queueName ) : bool
queueName string Name of the message queue to create.
return bool
        public void Queue_should_exist_when_created()
        {
            var sut = new InMemoryMessageStore();
            var queueName = "test";
            sut.CreateQueue(queueName);

            var exists = sut.QueueExists(queueName);
            Assert.AreEqual<bool>(true, exists);
        }
        public void Should_store_queue_when_queue_created()
        {
            var sut = new InMemoryMessageStore();
            var queueName = "test";
            sut.CreateQueue(queueName);

            var queues = sut.GetQueues();
            Assert.AreEqual<string>(queueName, queues[0]);
        }