public FieldTestControl(IEditorNavigator navigator, IOutputWriter outputWriter, IDebugAttacher debugAttacher)
        {
            _navigator     = navigator;
            _outputWriter  = outputWriter;
            _debugAttacher = debugAttacher;

            InitializeComponent();

            _viewModel             = new FieldTestViewModel();
            _viewModel.CanRunTests = false;

            DataContext = _viewModel;
        }
        private void NotifyUnrunTests(IEnumerable <TestDetails> selectedTests)
        {
            var allTests = _viewModel.TestAssemblies.SelectMany(t => t.TestClasses).SelectMany(t => t.Tests);

            var testsThatWerentRun = from test
                                     in allTests
                                     where !selectedTests.Contains(test)
                                     select test;

            foreach (var test in testsThatWerentRun)
            {
                test.Status = FieldTestViewModel.SetStatusToPreviouslyRun(test.Status);
            }

            foreach (var test in selectedTests)
            {
                test.Status = TestStatus.InProgress;
            }
        }