/// <summary> /// Applies the test to a form. /// </summary> /// <param name="test"> The test to apply.</param> /// <param name="formTag"> The form.</param> /// <returns> A form with the new values.</returns> protected HtmlFormTag ApplyTestToForm(Test test, HtmlFormTag formTag) { UnitTester tester = new UnitTester(test.Arguments); return tester.BuildUnitTestForm(test.TestType, formTag); }
/// <summary> /// Applies the test to cookie collection. /// </summary> /// <param name="test"> The test to apply.</param> /// <param name="cookies"> The cookie collection.</param> /// <returns> A cookie collection with new values.</returns> protected CookieCollection ApplyTestToCookies(Test test, CookieCollection cookies) { UnitTester tester = new UnitTester(test.Arguments); return tester.BuildUnitTestCookies(test.TestType, cookies); }
/// <summary> /// Applies the test to a form. /// </summary> /// <param name="test"> The test to apply.</param> /// <param name="postData"> The post data collection.</param> /// <returns> A form with the new values.</returns> protected PostDataCollection ApplyTestToPostData(Test test, PostDataCollection postData) { UnitTester tester = new UnitTester(test.Arguments); return tester.BuildUnitTestPostData(test.TestType, postData); }
/// <summary> /// Applies the test to url. /// </summary> /// <param name="test"> The test to apply.</param> /// <param name="webServerUriType"> The web server uri type.</param> /// <param name="url"> The url.</param> /// <returns> A new url.</returns> protected Uri ApplyTestToUrl(Test test, WebServerUriType webServerUriType, Uri url) { UnitTester tester = new UnitTester(test.Arguments); return tester.BuildUnitTestGetRequest(test.TestType, webServerUriType, url); }
private HtmlFormTag ApplyTestToForm(Test t, HtmlFormTag f) { UnitTester tester = new UnitTester(t.Arguments); return tester.BuildUnitTest(t.TestType,f); }