public void BasicRequestParameterConstructorTest()
        {
            string name = "TestName";
            string content = "AbcȘaBc";
            Encoding currentContentEncoding = Encoding.UTF8;
            var request = new BasicRequestParameter(name, content, currentContentEncoding);

            Assert.AreEqual("TestName",request.Name,"Incorrect Name initialization.");
            Assert.AreEqual("Abc%c8%98aBc", request.Content, "Incorrect url encoded content.");
        }
        private static void AddBasicParameterToBodyContent(PostRequest request, BasicRequestParameter parameter)
        {
            if (!string.IsNullOrEmpty(request.Body))
            {
                request.BodyBuilder.Append("&");
            }

            request.BodyBuilder.Append(string.Format("{0}={1}", parameter.Name, parameter.Content));
        }
        public void ParameterTypeTest()
        {
            var request = new BasicRequestParameter("TestName", "test");

            Assert.AreEqual(RequestParameterType.Basic, request.ParameterType, "BasicParameter should be of type 'RequestParameterType.Basic'.");
        }
        public void ContentTypeTest()
        {
            var request = new BasicRequestParameter("TestName", "test");

            Assert.AreEqual("application/x-www-form-urlencoded", request.ContentType, "BasicParameter should always have content-type equals with 'application/x-www-form-urlencoded'.");
        }
        public void ContentDispositionTest()
        {
            var request = new BasicRequestParameter("TestName", "test");

            Assert.AreEqual("form-data",request.ContentDisposition,"BasicParameter should always have content-disposition equals with 'form-data'.");
        }