public void IntegrationTestPutBlobAndPutBlobIfUnchangedWithSameETag() { IBlobService blobService = new BlobService(StorageAccount.Name, StorageAccount.Key); // Create a container. bool createSucess = blobService.CreateContainer("test9"); Assert.IsTrue(createSucess, "The container was not created as expected."); // Put a blob in the container. bool putSuccess = blobService.PutBlob("test9", "blobName", "blobContent"); Assert.IsTrue(putSuccess, "The put was not successful."); // Get blob properties SortedList<string, string> blobProperties = blobService.GetBlobProperties("test9", "blobName"); string etagValue = blobProperties["ETag"]; // Put blob if changed. bool putBlobIfUnchangedSuccess = blobService.PutBlobIfUnchanged("test9", "blobName", "blah", etagValue); Assert.IsTrue(putBlobIfUnchangedSuccess, "The blob was not indicated to have been updated when this was expected."); // Now delete the container. bool deleteSuccess = blobService.DeleteContainer("test9"); Assert.IsTrue(deleteSuccess, "The container was not deleted as expected."); }