GetValues() public method

public GetValues ( string key ) : IEnumerable
key string
return IEnumerable
        public void QueryString_GetValues_KeyFound_ValuesForKey()
        {
            //------------Setup for test--------------------------
            var items = new List<KeyValuePair<string, string>> { new KeyValuePair<string, string>("key", "value1; value2") };

            var queryString = new QueryString(items);

            //------------Execute Test---------------------------
            var values = queryString.GetValues("key");

            //------------Assert Results-------------------------
            Assert.IsNotNull(values);
            var i = 1;
            foreach(var value in values)
            {
                Assert.AreEqual("value" + i++, value);
            }
        }
        public void QueryString_GetValues_KeyNotFound_EmptyEnumerable()
        {
            //------------Setup for test--------------------------
            var items = new List<KeyValuePair<string, string>> { new KeyValuePair<string, string>("key", "value1; value2") };

            var queryString = new QueryString(items);

            //------------Execute Test---------------------------
            var values = queryString.GetValues("key1");

            //------------Assert Results-------------------------
            Assert.AreEqual(0, values.Count());
        }