コード例 #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);
        }