Exemplo n.º 1
0
        public void ValidateScriptReferencesFalseTest()
        {
            var toolkit = new ToolkitScriptManager {
                Page = new Page()
            };

            toolkit.Page.Controls.Add(new AccordionExtender());
            toolkit.CombineScriptsHandlerUrl = new Uri("http://acttest.axd"); // avoid error
            toolkit.LoadScriptReferences(_moqContext.Object, new[] { "Twitter" }, true);
            toolkit.ValidateScriptReferences();
        }
Exemplo n.º 2
0
        public void ValidateScriptReferencesTest(Control control, string bundleName)
        {
            var page = new Page();

            page.Controls.Add(page.LoadControl(control.GetType(), null));

            var toolkit = new ToolkitScriptManager {
                Page = page
            };

            toolkit.CombineScriptsHandlerUrl = new Uri("http://acttest.axd"); // avoid error
            toolkit.LoadScriptReferences(_moqContext.Object, new[] { bundleName }, true);
            toolkit.ValidateScriptReferences();
        }