public void when_nothing_blob_detail_items() { CloudStorageAccount cloudStorageAccount = ConnectionConfig.StorageAccount; var streamContainer = new BlobStreamingContainer( cloudStorageAccount.CreateCloudBlobClient().GetBlobDirectoryReference("blob-streaming-directory-nothing")); var existSubContainer = streamContainer.Exists(); streamContainer.ListAllNestedItemsWithDetail().ToArray(); Assert.IsFalse(existSubContainer); }
public void when_existing_blob_detail_items() { using (var stream = _streamContainer.OpenWrite("example1.txt")) stream.WriteByte(1); using (var stream = _streamContainer.OpenWrite("example2.txt")) stream.WriteByte(1); var items = _streamContainer.ListAllNestedItemsWithDetail().ToArray(); Assert.AreEqual(2, items.Length); Assert.AreEqual("example1.txt", items[0].Name); Assert.AreEqual("example2.txt", items[1].Name); }