private void UpdateQueuedResults() { foreach (var testRunnerResult in m_QueuedResults) { if (ResultsByKey.TryGetValue(testRunnerResult.uniqueId, out var existingResult)) { existingResult.Update(testRunnerResult); } } m_QueuedResults.Clear(); TestSelectionCallback(m_TestListState.selectedIDs.ToArray()); m_TestRunnerUIFilter.UpdateCounters(newResultList); Repaint(); m_Window.Repaint(); }
public void UpdateResult(TestRunnerResult result) { if (!HasTreeData()) { m_QueuedResults.Add(result); return; } if (ResultsByKey.TryGetValue(result.uniqueId, out var testRunnerResult)) { testRunnerResult.Update(result); Repaint(); m_Window.Repaint(); } }