Example #1
0
        public void QueryStringTest()
        {
            var queryString = @"?aa=aa&aa%3Daa=&aa=aa%3D&aa=&aa=aaa&aaa=aaa&aaa=aa&aaa=a&ab=aa&ab=aa&cc=&cc=&bb=aa&bb=";

            var result = JDCloudSignerV3.ProcessQueryString(queryString);

            _output.WriteLine(result);
        }
        public void TestProcessQueryString()
        {
            string queryString = "? =blank&%20=blank&+= 2&%2b= 1&blank= &blank=+&blank=%20";
            string request     = JDCloudSignerV3.ProcessQueryString(queryString);

            _output.WriteLine(request);
            _output.WriteLine("%20=%202&%20=blank&%20=blank&%2B=%201&blank=%20&blank=%20&blank=%20");
            Assert.Equal("%20=%202&%20=blank&%20=blank&%2B=%201&blank=%20&blank=%20&blank=%20", request);
        }