public void GetString_NoMatches()
        {
            var collection = new NameValueCollection
            {
                { "example1", "value1" },
                { "example2", "value2" }
            };
            var cs     = new NameValueConfigurationSource(collection);
            var result = ConfigurationSourceExtensions.GetStrings(cs, "test");

            Assert.Empty(result);
        }
        public void GetString_MultipleValues()
        {
            var collection = new NameValueCollection
            {
                { "example1", "value1,value2,," }
            };
            var cs     = new NameValueConfigurationSource(collection);
            var result = ConfigurationSourceExtensions.GetStrings(cs, "example1");

            Assert.Contains(result, (v) => v == "value1");
            Assert.Contains(result, (v) => v == "value2");
            Assert.True(result.Count() == 2);
        }
        public void GetStrings_CanHandleNullSource()
        {
            var result = ConfigurationSourceExtensions.GetStrings(null, "test");

            Assert.Same(Enumerable.Empty <string>(), result);
        }