public void EmbedWin_InWin_Works()
        {
            var winFormsUserControl = new WinFormsUserControl();
            var manager = new EmbeddingManager<Control, Control>(winFormsUserControl, control => control);

            var winFormsWindow = new WinFormsWindow(manager);
            winFormsWindow.ShowWindow();
        }
        public void EmbedWin_InWinWithExtraClass_Works()
        {
            var winFormsUserControl = new WinFormsUserControl();
            var manager = new WinInWinEmbeddingManager(winFormsUserControl, control => control);

            var winFormsWindow = new WinFormsWindow(manager);
            winFormsWindow.ShowWindow();
        }
        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();
        }