コード例 #1
0
 public void IntegrationTestGetContainerProperties()
 {
     IBlobService blobService = new BlobService(StorageAccount.Name, StorageAccount.Key);
     bool createSucess = blobService.CreateContainer("test2");
     Assert.IsTrue(createSucess, "The container was not created as expected.");
     SortedList<string, string> containerProperties = blobService.GetContainerProperties("test2");
     Assert.IsNotNull(containerProperties, "The properties were null when they were not expected to be.");
     Assert.IsTrue(containerProperties.Count > 6, "The number of container properties was not as expected.");
     bool deleteSuccess = blobService.DeleteContainer("test2");
     Assert.IsTrue(deleteSuccess, "The container was not deleted as expected.");
 }