示例#1
0
        public async Task CanConditionallyDeleteQueue()
        {
            var queue = new StandaloneAzureQueue(BasePath, QueueName);
            await queue.CreateIfNotExistsAsync();

            await queue.DeleteIfExistsAsync();

            Assert.False(Directory.Exists(Path.Combine(BasePath, QueueName)));
        }
示例#2
0
        public void WillNotThrowIfConditionallyDeletingNonExistantQueue()
        {
            var queue = new StandaloneAzureQueue(BasePath, QueueName);

            Assert.DoesNotThrow(() => queue.DeleteIfExistsAsync());
        }