public void TestValidateForm() { var composer = new HttpRequestComposer(); bool result = composer.ValidateForm("index.html", "", "GET"); Assert.AreEqual(result, false); }
public void TestValidateForm2() { var composer = new HttpRequestComposer(); bool result = composer.ValidateForm("http://example.com/index.html", "", "GET"); Assert.AreEqual(result, true); }
public void TestValidateForm4() { var composer = new HttpRequestComposer(); bool result = composer.ValidateForm("http://some invalid url/", "", ""); Assert.AreEqual(result, false); }