public void AzureProviderUtilitiesGenerateBlockIdentifierBase64StringThrowsOnMissingFileID() { var provider = new ArchivialLibrary.StorageProviders.Azure.AzureStorageProviderUtilities(); Guid fileID = Guid.Empty; // should throw int blockID = 1; var result = provider.GenerateBlockIdentifierBase64String(fileID, blockID); }
public void AzureProviderUtilitiesGenerateBlockIdentifierBase64StringThrowsOnNegativeBlockNumber() { var provider = new ArchivialLibrary.StorageProviders.Azure.AzureStorageProviderUtilities(); Guid fileID = new Guid("51690d6e-f42a-4581-8e45-660b859bb432"); int blockID = -1; // should throw var result = provider.GenerateBlockIdentifierBase64String(fileID, blockID); }
public void AzureProviderUtilitiesGenerateBlockIdentifierBase64StringReturnsValidOutput() { var provider = new ArchivialLibrary.StorageProviders.Azure.AzureStorageProviderUtilities(); Guid fileID = new Guid("51690d6e-f42a-4581-8e45-660b859bb432"); int blockID = 1; var result = provider.GenerateBlockIdentifierBase64String(fileID, blockID); var expected = "NTE2OTBkNmUtZjQyYS00NTgxLThlNDUtNjYwYjg1OWJiNDMyLTAwMDAwMDAx"; Assert.AreEqual(expected, result); }