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(); ClearStateGroups(); _editorContext.ClearLog(); _editorContext.ActivateLog(); }