Beispiel #1
0
        public void ConvertKey_WithArrayArrayValue()
        {
            ConfigServerConfigurationProvider provider = new ConfigServerConfigurationProvider(new ConfigServerClientSettings());
            string result = provider.ConvertKey("a.b.foobar[1234][5678].barfoo.boo[123]");

            Assert.Equal("a:b:foobar:1234:5678:barfoo:boo:123", result);
        }
Beispiel #2
0
        public void ConvertKey_WithEscapedDot()
        {
            ConfigServerConfigurationProvider provider = new ConfigServerConfigurationProvider(new ConfigServerClientSettings());
            string result = provider.ConvertKey(@"a.b\.foobar");

            Assert.Equal("a:b.foobar", result);
        }