CloudinaryDotNet.Test.ApiTest.TestEscapePublicId C# (CSharp) Method

TestEscapePublicId() private method

private TestEscapePublicId ( ) : void
return void
        public void TestEscapePublicId()
        {
            // should escape public_ids

            var tests = new Dictionary<string, string>()
            {
                {"a b", "a%20b"},
                {"a+b", "a%2Bb"},
                {"a%20b", "a%20b"},
                {"a-b", "a-b"  },
                {"a??b", "a%3F%3Fb"}
            };

            foreach (var entry in tests)
            {
                string result = m_api.UrlImgUp.BuildUrl(entry.Key);
                Assert.AreEqual(m_defaultImgUpPath + "" + entry.Value, result);
            }
        }
ApiTest