示例#1
0
        public void CanonicalQueryStringBuilderEncodingTest()
        {
            const string input    = "[email protected]&Version=2010-05-08&Action=ListUsers&bA=ab";
            const string expected = "Action=ListUsers&Email=thomas.bruggink%40infosupport.com&Version=2010-05-08&bA=ab";

            var signer = new AwsSigner();
            var output = signer.BuildCanonicalQueryString(input);

            Assert.AreEqual(expected, output, "Query String builder failed");
        }
示例#2
0
        public void CanonicalQueryStringBuilderOrdinalTest()
        {
            const string input    = "Version=2010-05-08&Action=ListUsers&bA=ab";
            const string expected = "Action=ListUsers&Version=2010-05-08&bA=ab";

            var signer = new AwsSigner();
            var output = signer.BuildCanonicalQueryString(input);

            Assert.AreEqual(expected, output, "Query String builder failed");
        }