Ejemplo n.º 1
0
        public void DefaultCapabilities()
        {
            WebTest t = new WebTest(PageInvoker.CreateOnLoad(Page_OnLoad));

            t.Run();
        }
Ejemplo n.º 2
0
 public void MakeRelative7()
 {
     new WebTest(PageInvoker.CreateOnLoad(MakeRelative7_Load)).Run();
 }
Ejemplo n.º 3
0
 public void ToAppRelative2()
 {
     new WebTest(PageInvoker.CreateOnLoad(ToAppRelative2_Load)).Run();
 }
Ejemplo n.º 4
0
 public void  EnsureDataBound()
 {
     WebTest t    = new WebTest(PageInvoker.CreateOnInit(EnsureDataBound_Init));
     string  html = t.Run();
 }
Ejemplo n.º 5
0
 public void GetDirectory5()
 {
     new WebTest(PageInvoker.CreateOnLoad(GetDirectory5_Load)).Run();
 }
Ejemplo n.º 6
0
 public void ClientScriptManager_GetWebResourceUrl()
 {
     string html = new WebTest(PageInvoker.CreateOnLoad(GetWebResourceUrlLoad)).Run();
 }
Ejemplo n.º 7
0
 public void OnBubbleEventCaseSensitivity()
 {
     WebTest t    = new WebTest(PageInvoker.CreateOnPreInit(_OnBubbleEventCaseSensitivity));
     string  html = t.Run();
 }
Ejemplo n.º 8
0
 public void SiteMapPath_SiteMapRootNode()
 {
     new WebTest(PageInvoker.CreateOnLoad(SiteMapRootNode)).Run();
 }
Ejemplo n.º 9
0
 public void SiteMapPath_SiteMapChildNode()
 {
     new WebTest(PageInvoker.CreateOnLoad(InitializeItemPathSeparator)).Run();
 }
Ejemplo n.º 10
0
 public void SiteMapPath_InitializeItemParent()
 {
     new WebTest(PageInvoker.CreateOnLoad(InitializeItemParent)).Run();
 }
Ejemplo n.º 11
0
 public void SiteMapPath_InitializeItemTemplates()
 {
     new WebTest(PageInvoker.CreateOnLoad(InitializeItemTemplates)).Run();
 }
Ejemplo n.º 12
0
        public void AppRelativeTemplateSourceDirectory()
        {
            WebTest t = new WebTest(PageInvoker.CreateOnLoad(AppRelativeTemplateSourceDirectory_Load));

            t.Run();
        }
Ejemplo n.º 13
0
 public void DataFile()
 {
     new WebTest(PageInvoker.CreateOnLoad(datafile)).Run();
 }
Ejemplo n.º 14
0
        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();
 }
Ejemplo n.º 16
0
 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);
            }
        }
Ejemplo n.º 18
0
		public void Parameter_Evaluate ()
		{
			string html = new WebTest (PageInvoker.CreateOnLoad (
				new PageDelegate (Evaluate))).Run ();
			WebTest.Unload ();
		}		
Ejemplo n.º 19
0
 public void OnBubbleEvent()
 {
     WebTest t    = new WebTest(PageInvoker.CreateOnPreInit(_OnBubbleEvent));
     string  html = t.Run();
 }
Ejemplo n.º 20
0
 public void ClientTarget()
 {
     new WebTest(PageInvoker.CreateOnLoad(ClientTarget_load)).Run();
 }
Ejemplo n.º 21
0
 public void OnBubbleEvent_Authenticated_OnAuthenticate()
 {
     WebTest t    = new WebTest(PageInvoker.CreateOnPreInit(_OnBubbleEvent_Authenticated_OnAuthenticate));
     string  html = t.Run();
 }
Ejemplo n.º 22
0
        public void PopulateOnDemand_With_ChildNodes()
        {
            WebTest t = new WebTest(PageInvoker.CreateOnLoad(PopulateOnDemand_With_ChildNodes_OnLoad));

            t.Run();
        }
Ejemplo n.º 23
0
 public void Combine4()
 {
     new WebTest(PageInvoker.CreateOnLoad(Combine4_Load)).Run();
 }
Ejemplo n.º 24
0
        public void Browser()
        {
            WebTest t = new WebTest(PageInvoker.CreateOnInit(Browser_OnInit));

            t.Run();
        }
Ejemplo n.º 25
0
 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();
 }
Ejemplo n.º 27
0
 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();
 }
Ejemplo n.º 30
0
        public void CapabilitiesValues()
        {
            WebTest t = new WebTest(PageInvoker.CreateOnLoad(CapabilitiesValues_OnLoad));

            t.Run();
        }