public void DefaultCapabilities() { WebTest t = new WebTest(PageInvoker.CreateOnLoad(Page_OnLoad)); t.Run(); }
public void MakeRelative7() { new WebTest(PageInvoker.CreateOnLoad(MakeRelative7_Load)).Run(); }
public void ToAppRelative2() { new WebTest(PageInvoker.CreateOnLoad(ToAppRelative2_Load)).Run(); }
public void EnsureDataBound() { WebTest t = new WebTest(PageInvoker.CreateOnInit(EnsureDataBound_Init)); string html = t.Run(); }
public void GetDirectory5() { new WebTest(PageInvoker.CreateOnLoad(GetDirectory5_Load)).Run(); }
public void ClientScriptManager_GetWebResourceUrl() { string html = new WebTest(PageInvoker.CreateOnLoad(GetWebResourceUrlLoad)).Run(); }
public void OnBubbleEventCaseSensitivity() { WebTest t = new WebTest(PageInvoker.CreateOnPreInit(_OnBubbleEventCaseSensitivity)); string html = t.Run(); }
public void SiteMapPath_SiteMapRootNode() { new WebTest(PageInvoker.CreateOnLoad(SiteMapRootNode)).Run(); }
public void SiteMapPath_SiteMapChildNode() { new WebTest(PageInvoker.CreateOnLoad(InitializeItemPathSeparator)).Run(); }
public void SiteMapPath_InitializeItemParent() { new WebTest(PageInvoker.CreateOnLoad(InitializeItemParent)).Run(); }
public void SiteMapPath_InitializeItemTemplates() { new WebTest(PageInvoker.CreateOnLoad(InitializeItemTemplates)).Run(); }
public void AppRelativeTemplateSourceDirectory() { WebTest t = new WebTest(PageInvoker.CreateOnLoad(AppRelativeTemplateSourceDirectory_Load)); t.Run(); }
public void DataFile() { new WebTest(PageInvoker.CreateOnLoad(datafile)).Run(); }
public void Theme_SetThemeException() { string page = new WebTest(PageInvoker.CreateOnPreInit(SetThemeExeption)).Run(); Assert.IsTrue(page.IndexOf("System.Web.HttpException") >= 0, "System.Web.HttpException was expected, actual result: " + page); }
public void FindSiteMapNode_01() { new WebTest(PageInvoker.CreateOnLoad(FindSiteMapNode_01_OnLoad)).Run(); }
public void SiteMapPath_Events() { new WebTest(PageInvoker.CreateOnLoad(Events)).Run(); }
public void DynamicWidgetsDesignerListSettings_VerifyUsePagingFunctionality() { var dynamicCollection = ServerOperationsFeather.DynamicModulePressArticle().RetrieveCollectionOfPressArticles(); this.pageOperations = new PagesOperations(); string testName = System.Reflection.MethodInfo.GetCurrentMethod().Name; string pageNamePrefix = testName + "DynamicPage"; string pageTitlePrefix = testName + "Dynamic Page"; string urlNamePrefix = testName + "dynamic-page"; int index = 1; int itemsPerPage = 1; string index2 = "/2"; string index3 = "/3"; string url1 = UrlPath.ResolveAbsoluteUrl("~/" + urlNamePrefix + index); string url2 = UrlPath.ResolveAbsoluteUrl("~/" + urlNamePrefix + index + index2); string url3 = UrlPath.ResolveAbsoluteUrl("~/" + urlNamePrefix + index + index3); try { for (int i = 0; i < this.dynamicTitles.Length; i++) { ServerOperationsFeather.DynamicModulePressArticle().CreatePressArticleItem(this.dynamicTitles[i], this.dynamicUrls[i]); } dynamicCollection = ServerOperationsFeather.DynamicModulePressArticle().RetrieveCollectionOfPressArticles(); var mvcProxy = new MvcWidgetProxy(); mvcProxy.ControllerName = typeof(DynamicContentController).FullName; var dynamicController = new DynamicContentController(); dynamicController.Model.ContentType = TypeResolutionService.ResolveType(ResolveType); dynamicController.Model.DisplayMode = ListDisplayMode.Paging; dynamicController.Model.ItemsPerPage = itemsPerPage; mvcProxy.Settings = new ControllerSettings(dynamicController); mvcProxy.WidgetName = WidgetName; this.pageOperations.CreatePageWithControl(mvcProxy, pageNamePrefix, pageTitlePrefix, urlNamePrefix, index); string responseContent1 = PageInvoker.ExecuteWebRequest(url1); string responseContent2 = PageInvoker.ExecuteWebRequest(url2); string responseContent3 = PageInvoker.ExecuteWebRequest(url3); for (int i = 0; i < this.dynamicTitles.Length; i++) { switch (i) { case 0: Assert.IsTrue(responseContent3.Contains(this.dynamicTitles[i]), "The dynamic item with this title was not found!"); Assert.IsFalse(responseContent3.Contains(this.dynamicTitles[i + 1]), "The dynamic item with this title was found!"); Assert.IsFalse(responseContent3.Contains(this.dynamicTitles[i + 2]), "The dynamic item with this title was found!"); break; case 1: Assert.IsTrue(responseContent2.Contains(this.dynamicTitles[i]), "The dynamic item with this title was not found!"); Assert.IsFalse(responseContent2.Contains(this.dynamicTitles[i + 1]), "The dynamic item with this title was found!"); Assert.IsFalse(responseContent2.Contains(this.dynamicTitles[i - 1]), "The dynamic item with this title was found!"); break; case 2: Assert.IsTrue(responseContent1.Contains(this.dynamicTitles[i]), "The dynamic item with this title was not found!"); Assert.IsFalse(responseContent1.Contains(this.dynamicTitles[i - 1]), "The dynamic item with this title was found!"); Assert.IsFalse(responseContent1.Contains(this.dynamicTitles[i - 2]), "The dynamic item with this title was found!"); break; } } } finally { this.pageOperations.DeletePages(); ServerOperationsFeather.DynamicModulePressArticle().DeleteDynamicItems(dynamicCollection); } }
public void Parameter_Evaluate () { string html = new WebTest (PageInvoker.CreateOnLoad ( new PageDelegate (Evaluate))).Run (); WebTest.Unload (); }
public void OnBubbleEvent() { WebTest t = new WebTest(PageInvoker.CreateOnPreInit(_OnBubbleEvent)); string html = t.Run(); }
public void ClientTarget() { new WebTest(PageInvoker.CreateOnLoad(ClientTarget_load)).Run(); }
public void OnBubbleEvent_Authenticated_OnAuthenticate() { WebTest t = new WebTest(PageInvoker.CreateOnPreInit(_OnBubbleEvent_Authenticated_OnAuthenticate)); string html = t.Run(); }
public void PopulateOnDemand_With_ChildNodes() { WebTest t = new WebTest(PageInvoker.CreateOnLoad(PopulateOnDemand_With_ChildNodes_OnLoad)); t.Run(); }
public void Combine4() { new WebTest(PageInvoker.CreateOnLoad(Combine4_Load)).Run(); }
public void Browser() { WebTest t = new WebTest(PageInvoker.CreateOnInit(Browser_OnInit)); t.Run(); }
public void GetFileName4() { new WebTest(PageInvoker.CreateOnLoad(GetFileName4_Load)).Run(); }
public void TemplateControl_TestDeviceFilter() { //Have no definition to TestDeviceFilter WebTest t = new WebTest(PageInvoker.CreateOnLoad(DoTestDeviceFilter)); string html = t.Run(); }
public void ToAbsolute7() { new WebTest(PageInvoker.CreateOnLoad(ToAbsolute7_Load)).Run(); }
public void IsAccessibleFrom1() { new WebTest(PageInvoker.CreateOnLoad(IsAccessibleFrom1_delegate)).Run(); }
public void RewritePath() { WebTest t = new WebTest(PageInvoker.CreateOnInit(RewritePath_OnInit)); string html = t.Run(); }
public void CapabilitiesValues() { WebTest t = new WebTest(PageInvoker.CreateOnLoad(CapabilitiesValues_OnLoad)); t.Run(); }