public async Task WillWriteMessageFileToQueueDirectory() { var message = new CloudQueueMessage("Test message"); await _queue.AddMessageAsync(message); var file = Directory.GetFiles(BasePath).FirstOrDefault(); Assert.NotNull(file); }
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); }
public async Task CanGetWrittenMessage() { await _queue.AddMessageAsync(new CloudQueueMessage("Test message")); var message = await _queue.GetMessageAsync(); Assert.Equal("Test message", message.AsString); }