public void ConvertArray_WithArrayArrayNotAtEnd() { ConfigServerConfigurationProvider provider = new ConfigServerConfigurationProvider(new ConfigServerClientSettings()); string result = provider.ConvertArrayKey("foobar[1234][5678]barbar"); Assert.Equal("foobar[1234][5678]barbar", result); }
public void ConvertArray_WithArrayValue() { ConfigServerConfigurationProvider provider = new ConfigServerConfigurationProvider(new ConfigServerClientSettings()); string result = provider.ConvertArrayKey("foobar[1234]"); Assert.Equal("foobar:1234", result); }
public void ConvertArray_WithArrayArrayValue() { var provider = new ConfigServerConfigurationProvider(new ConfigServerClientSettings()); var result = provider.ConvertArrayKey("foobar[1234][5678]"); Assert.Equal("foobar:1234:5678", result); }
public void ConvertArray_NotArrayValue2() { var provider = new ConfigServerConfigurationProvider(new ConfigServerClientSettings()); var result = provider.ConvertArrayKey("foobar[bar]"); Assert.Equal("foobar[bar]", result); }
public void ConvertArray_WithArrayArrayValue() { IHostingEnvironment envir = new HostingEnvironment(); ConfigServerConfigurationProvider provider = new ConfigServerConfigurationProvider(new ConfigServerClientSettings(), envir); string result = provider.ConvertArrayKey("foobar[1234][5678]"); Assert.Equal("foobar:1234:5678", result); }
public void ConvertArray_NotArrayValue2() { IHostingEnvironment envir = new HostingEnvironment(); ConfigServerConfigurationProvider provider = new ConfigServerConfigurationProvider(new ConfigServerClientSettings(), envir); string result = provider.ConvertArrayKey("foobar[bar]"); Assert.Equal("foobar[bar]", result); }