Пример #1
0
    public void Properly_Encodes_Parameter_Names() {
        var postData = new WebPairCollection {
            { "name[first]", "Chuck" },
            { "name[last]", "Testa" }
        };
        var sortedParams = OAuthTools.SortParametersExcludingSignature(postData);

        sortedParams.First().Should().Be("name%5Bfirst%5D=Chuck");
    }
Пример #2
0
        public void Properly_Encodes_Parameter_Names()
        {
            var postData = new WebParameterCollection {
                { "name[first]", "Chuck" }, { "name[last]", "Testa" }
            };
            var sortedParams = OAuthTools.SortParametersExcludingSignature(postData);

            Assert.Equal("name%5Bfirst%5D", sortedParams[0].Name);
        }