public void AzureProviderUtilitiesGetHydrationStatusFromAzureStateCorrectlyParsesUnknown() { var provider = new ArchivialLibrary.StorageProviders.Azure.AzureStorageProviderUtilities(); var result = provider.GetHydrationStatusFromAzureState(Microsoft.WindowsAzure.Storage.Blob.RehydrationStatus.Unknown); var expected = ArchivialLibrary.StorageProviders.StorageProviderHydrationStatus.None.ToString(); Assert.AreEqual(expected, result); }
public void AzureProviderUtilitiesGetHydrationStatusFromAzureStateCorrectlyParsesPendingCool() { var provider = new ArchivialLibrary.StorageProviders.Azure.AzureStorageProviderUtilities(); var result = provider.GetHydrationStatusFromAzureState(Microsoft.WindowsAzure.Storage.Blob.RehydrationStatus.PendingToCool); var expected = ArchivialLibrary.StorageProviders.StorageProviderHydrationStatus.MovingToActiveTier.ToString(); Assert.AreEqual(expected, result); }
public void AzureProviderUtilitiesGetHydrationStatusFromAzureStateCorrectlyParsesNull() { var provider = new ArchivialLibrary.StorageProviders.Azure.AzureStorageProviderUtilities(); var result = provider.GetHydrationStatusFromAzureState(null); var expected = ArchivialLibrary.StorageProviders.StorageProviderHydrationStatus.None.ToString(); Assert.AreEqual(expected, result); }
public void AzureProviderUtilitiesGetHydrationStatusFromAzureStateCorrectlyThrowsOnUnexpectedValue() { var provider = new ArchivialLibrary.StorageProviders.Azure.AzureStorageProviderUtilities(); var result = provider.GetHydrationStatusFromAzureState((Microsoft.WindowsAzure.Storage.Blob.RehydrationStatus) 500); // not a real enum value }