Esempio n. 1
0
        public async Task DeleteWillRemoveFile()
        {
            await _queue.AddMessageAsync(new CloudQueueMessage("First test message"));

            var message = await _queue.GetMessageAsync();

            await _queue.DeleteMessageAsync(message);

            var files = Directory.GetFiles(BasePath);

            Assert.Empty(files);
        }
Esempio n. 2
0
        public async Task CanGetWrittenMessage()
        {
            await _queue.AddMessageAsync(new CloudQueueMessage("Test message"));

            var message = await _queue.GetMessageAsync();

            Assert.Equal("Test message", message.AsString);
        }