Beispiel #1
0
 public void Non_added_keys_return_null(ConfigurationProvider provider, string key)
 {
     Assert.That(ConfigurationProviderExtensions.Get(provider, key), Is.Null);
 }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        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));
        }
Beispiel #4
0
 public void Non_added_keys_are_not_found(ConfigurationProvider provider, string key)
 {
     Assert.That(ConfigurationProviderExtensions.HasKey(provider, key), Is.False);
 }
Beispiel #5
0
        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);
        }
Beispiel #6
0
        public void Added_keys_are_found(ConfigurationProvider provider, string key, string value)
        {
            provider.Set(key, value);

            Assert.That(ConfigurationProviderExtensions.HasKey(provider, key), Is.True);
        }