private async void OnSolutionClosing(object sender, EventArgs e) { if (_testRunner.IsBusy) { await _testRunner.AbortTestsAsync(); } IsSolutionLoaded = false; Update(null as TestSolution); StateGroups.Clear(); }
private void OnTestsStarted(object sender, EventArgs <TestItem> e) { _testsToExecute = e.Value .Flatten(p => p.Children) .Where(p => p.IsTest()) .Count(); _testsExecuted = 0; IsProgressIndeterminate = true; StatusMessage = Resources.InitializingTestRunner; RunnerState = RunnerStates.Testing; TestSolution.ResetAll(); StateGroups.Clear(); _editorContext.ClearLog(); _editorContext.ActivateLog(); }