Beispiel #1
0
        public void GetQueryParametersWithQuestionMark()
        {
            List <QueryParameter> parameters = UriUtility.GetQueryParameters("?key1=value1&key2=value2");

            Assert.Equal(2, parameters.Count);
            Assert.Equal("value1", parameters.Single(p => p.Key == "key1").Value);
            Assert.Equal("value2", parameters.Single(p => p.Key == "key2").Value);
        }