Example #1
0
        protected void OneTimeSetUp()
        {
            if (Application.Current == null)
            {
                DispatcherSynchronizationContext.SetSynchronizationContext(new DispatcherSynchronizationContext());
                new Application();
                Application.Current.ShutdownMode = ShutdownMode.OnExplicitShutdown;
            }

            window = new Window();
            window.Show();
        }