public void EmbedWpf_InWpf_Works()
        {
            var wpfUserControl = new WpfUserControl();
            var manager = new EmbeddingManager<UIElement, UIElement>(wpfUserControl, uiElement => uiElement);

            var wpfWindow = new WpfWindow(manager);
            wpfWindow.ShowWindow();

            //http://sunshaking.blogspot.com/2008/10/tricks-for-writing-unit-tests-for-wpf.html
            Dispatcher.CurrentDispatcher.InvokeShutdown();
        }
        public void EmbedWin_InWpf_Works()
        {
            var winFormsUserControl = new WinFormsUserControl();
            var manager = new EmbeddingManager<UIElement, Control>(
                winFormsUserControl, c => new WindowsFormsHost {Child = c});

            var wpfWindow = new WpfWindow(manager);
            wpfWindow.ShowWindow();

            //http://sunshaking.blogspot.com/2008/10/tricks-for-writing-unit-tests-for-wpf.html
            Dispatcher.CurrentDispatcher.InvokeShutdown();
        }