public void ClearMessages_NoMessagesInQueue_LeavesQueueEmpty()
        {
            IQueueServiceClient client = new QueueServiceClient(_accountSettings);
            var queueName = GenerateSampleQueueName();
            _util.CreateQueue(queueName);

            client.ClearMessages(queueName);

            _util.AssertQueueIsEmpty(queueName);
        }
        public void ClearMessages_QueueDoesNotExist_ThrowsQueueNotFoundException()
        {
            IQueueServiceClient client = new QueueServiceClient(_accountSettings);
            var queueName = GenerateSampleQueueName();

            client.ClearMessages(queueName);

            //expects exception
        }
        public void ClearMessages_MessagesInQueue_LeavesQueueEmpty()
        {
            IQueueServiceClient client = new QueueServiceClient(_accountSettings);
            var queueName = GenerateSampleQueueName();
            _util.CreateQueue(queueName);
            _util.AddItemsToQueue(queueName, new List<string>() { "1", "2", "3", "4" });

            client.ClearMessages(queueName);

            _util.AssertQueueIsEmpty(queueName);
        }