public void CloudQueueClientListQueuesBasic() { string prefix = "dotnetqueuetest" + Guid.NewGuid().ToString("N"); List <string> queueNames = new List <string>(); int count = 30; for (int i = 0; i < count; i++) { queueNames.Add(prefix + i); } CloudQueueClient client = GenerateCloudQueueClient(); List <CloudQueue> emptyResults = client.ListQueues(prefix, QueueListingDetails.All, null, null).ToList(); Assert.AreEqual <int>(0, emptyResults.Count); foreach (string name in queueNames) { client.GetQueueReference(name).Create(); } List <CloudQueue> results = client.ListQueues(prefix, QueueListingDetails.All, null, null).ToList(); Assert.AreEqual <int>(results.Count, queueNames.Count); foreach (CloudQueue queue in results) { if (queueNames.Remove(queue.Name)) { queue.Delete(); } else { Assert.Fail(); } } Assert.AreEqual <int>(0, queueNames.Count); }