void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            // When running with a UI, we redirect the console output
            // to a text box in the application's interface.

            var outputter = new TextBoxOutputter(ConsoleTextBlock);

            Console.SetOut(outputter);
        }
        public MainWindow()
        {
            InitializeComponent();

            vm = new RunnerViewModel(new WpfContext());

            DataContext = vm;

            Closing += View_Closing;

            var outputter = new TextBoxOutputter(ConsoleTextBlock);

            Console.SetOut(outputter);

            var args = Environment.GetCommandLineArgs();

            if (args.Length == 2)
            {
                vm.TestAssembly = args[1];
            }
        }