public async Task ClearMessagesAsync_QueueDoesNotExist_ThrowsQueueNotFoundException() { IQueueServiceClient client = new QueueServiceClient(_accountSettings); var queueName = GenerateSampleQueueName(); await client.ClearMessagesAsync(queueName); //expects exception }
public async Task ClearMessagesAsync_MessagesInQueue_LeavesQueueEmpty() { IQueueServiceClient client = new QueueServiceClient(_accountSettings); var queueName = GenerateSampleQueueName(); _util.CreateQueue(queueName); _util.AddItemsToQueue(queueName, new List<string>() { "1", "2", "3", "4" }); await client.ClearMessagesAsync(queueName); _util.AssertQueueIsEmpty(queueName); }