コード例 #1
0
        public void TestValidateForm()
        {
            var composer = new HttpRequestComposer();

            bool result = composer.ValidateForm("index.html", "", "GET");

            Assert.AreEqual(result, false);
        }
コード例 #2
0
        public void TestValidateForm2()
        {
            var composer = new HttpRequestComposer();

            bool result = composer.ValidateForm("http://example.com/index.html", "", "GET");

            Assert.AreEqual(result, true);
        }
コード例 #3
0
        public void TestValidateForm4()
        {
            var composer = new HttpRequestComposer();

            bool result = composer.ValidateForm("http://some invalid url/", "", "");

            Assert.AreEqual(result, false);
        }