public async Task TestDirectories() { CloudBlobContainer container = _blobClient.GetContainerReference("container"); container.CreateIfNotExists(); await Task.WhenAll( CreateNonEmptyDirectory(container, "dir1"), CreateNonEmptyDirectory(container, "dir2")); AzureBlobContainer azureBlobContainer = new AzureBlobContainer(container); IEnumerable <string> directories = (await azureBlobContainer.ListDirectories()).Select(d => d.Name); Assert.AreEqual(2, directories.Count()); Assert.IsTrue(directories.Contains("dir1")); Assert.IsTrue(directories.Contains("dir2")); }