public void TestWithPrefixDots() { var provider = new ConfigurationSettingsProvider("pr:"); var settings = provider.GetMany(new[] {"test1", "test2"}).ToList(); Assert.Equal(2, settings.Count); Assert.False(settings.Any(it => it.Value == null)); for (var i = 1; i <= 2; i++) { Assert.Equal($"prvalue{i}", settings[i - 1].Value); } }
public void TestGetMany() { var provider = new ConfigurationSettingsProvider(); var settings = provider.GetMany(new[] {"test1", "test2", "test3"}).ToList(); Assert.Equal(3, settings.Count); Assert.False(settings.Any(it => it.Value == null)); for (var i = 1; i <= 3; i++) { Assert.Contains($"value{i}", settings.Select(it => it.Value)); } }