private static void CleanupQueues()
        {
            IQueueService queueService = new QueueService(StorageAccount.Name, StorageAccount.Key);
            Queue[] queues = queueService.ListQueues();
            bool failure = false;
            foreach (Queue queue in queues)
            {
                if (queue.Name.StartsWith("test", StringComparison.OrdinalIgnoreCase))
                {
                    bool deleteSuccess = queueService.DeleteQueue(queue.Name);
                    if (!deleteSuccess)
                    {
                        Console.WriteLine("Failed to delete queue named '{0}'.", queue.Name);
                        failure = true;
                    }
                }
            }

            Assert.IsFalse(failure, "The clean-up failed to delete at least one queue, see console output for more information.");
        }
 public void IntegrationTestListQueuesWithRetries()
 {
     IQueueService queueService = new QueueService(StorageAccount.Name, StorageAccount.Key);
     Queue[] queues = queueService.ListQueues(2);
     Assert.IsTrue(queues.Length > 0, "The queue list was empty when it was not expected to be so.");
     foreach (Queue queue in queues)
     {
         Console.WriteLine("Found queue name - " + queue.Name);
     }
 }