예제 #1
0
 public void Non_added_keys_return_null(ConfigurationProvider provider, string key)
 {
     Assert.That(ConfigurationProviderExtensions.Get(provider, key), Is.Null);
 }
예제 #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));
        }
예제 #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));
        }
예제 #4
0
 public void Non_added_keys_are_not_found(ConfigurationProvider provider, string key)
 {
     Assert.That(ConfigurationProviderExtensions.HasKey(provider, key), Is.False);
 }
예제 #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);
        }
예제 #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);
        }