public void Non_added_keys_return_null(ConfigurationProvider provider, string key) { Assert.That(ConfigurationProviderExtensions.Get(provider, key), Is.Null); }
public void Values_of_nested_keys_can_be_retrieved(ConfigurationProvider provider, string firstKey, string secondKey, string value) { provider.Set($"{firstKey}{ConfigurationPath.KeyDelimiter}{secondKey}", value); Assert.That(ConfigurationProviderExtensions.Get(provider, firstKey, secondKey), Is.EqualTo(value)); }
public void Values_can_be_retrieved(ConfigurationProvider provider, string key, string value) { provider.Set(key, value); Assert.That(ConfigurationProviderExtensions.Get(provider, key), Is.EqualTo(value)); }
public void Non_added_keys_are_not_found(ConfigurationProvider provider, string key) { Assert.That(ConfigurationProviderExtensions.HasKey(provider, key), Is.False); }
public void Added_nested_keys_are_found(ConfigurationProvider provider, string firstKey, string secondKey, string value) { provider.Set($"{firstKey}{ConfigurationPath.KeyDelimiter}{secondKey}", value); Assert.That(ConfigurationProviderExtensions.HasKey(provider, firstKey, secondKey), Is.True); }
public void Added_keys_are_found(ConfigurationProvider provider, string key, string value) { provider.Set(key, value); Assert.That(ConfigurationProviderExtensions.HasKey(provider, key), Is.True); }