示例#1
0
 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();
 }
示例#2
0
        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();
            }
        }