internal void TestNavigation(Action<INavigationBuilder, HTMLWindow, WindowTest> Test, bool iDebug = false, bool iManageLifeCycle = true)
        {
            AssemblyHelper.SetEntryAssembly();
            HTMLWindow wc1 = null;
            Func<HTMLWindow> iWebControlFac = () =>
            {
                wc1 = new HTMLWindow();
                wc1.IsDebug = iDebug;
                return wc1;
            };

            using (var wcontext = BuildWindow(iWebControlFac, iManageLifeCycle))
            {
                Test(wc1.NavigationBuilder, wc1, wcontext);
            }
        }
        internal void TestNavigation(Action<HTMLWindow, WindowTest> Test, bool Cef=true)
        {
            if (Cef)
            {
                HTMLEngineFactory.Engine.Register(new CefGlueWPFWebWindowFactory());
            }

            AssemblyHelper.SetEntryAssembly();

            HTMLWindow wc1 = null;
            Func<HTMLWindow> Build = () =>
            {
                wc1 = new HTMLWindow(_INavigationBuilder);
                return wc1;
            };

            using (var wcontext = BuildWindow(Build))
            {
                Test(wc1, wcontext);
            }
        }