Пример #1
0
        public async Task TestGetFile()
        {
            CloudBlobContainer container = _blobClient.GetContainerReference("container");

            container.CreateIfNotExists();

            await CreateEmptyBlob(container.GetBlockBlobReference("blob1"));

            AzureBlobContainer azureBlobContainer = new AzureBlobContainer(container);

            Assert.AreEqual("blob1", (await azureBlobContainer.GetFile("blob1")).Name);
        }