public void TryGetProviderId_FoundName_True() { var provider = new ProviderIdsExtensionsTestsObject(); provider.ProviderIds[MetadataProvider.Imdb.ToString()] = ExampleImdbId; Assert.True(provider.TryGetProviderId(MetadataProvider.Imdb, out var id)); Assert.Equal(ExampleImdbId, id); }
public void TryGetProviderId_FoundNameEmptyValue_False() { var provider = new ProviderIdsExtensionsTestsObject(); provider.ProviderIds[MetadataProvider.Imdb.ToString()] = string.Empty; Assert.False(provider.TryGetProviderId(MetadataProvider.Imdb, out var id)); Assert.Null(id); }