Esempio n. 1
0
 public void LoadData()
 {
     var testListBuilder = new TestListBuilder();
     var allTests = testListBuilder.BuildTestsList();
     foreach (var test in allTests)
     {
         AllTests.Add(new TestViewModel(test));
     }
 }
Esempio n. 2
0
        public void LoadData()
        {
            var testListBuilder = new TestListBuilder();
            var allTests        = testListBuilder.BuildTestsList();

            foreach (var test in allTests)
            {
                AllTests.Add(new TestViewModel(test));
            }
        }
 public override void FetchData()
 {
     TestListBuilder builder = new TestListBuilder(this.m_EditorTestsRunnerWindow.m_ResultList);
     base.m_RootItem = builder.GetTests(EditorTestsRunnerWindow.s_TestEngine.testSuite, this.m_EditorTestsRunnerWindow.m_FilterSettings);
     this.SetExpanded(base.m_RootItem, true);
     if (this.m_ExpandTreeOnCreation)
     {
         this.m_ExpandTreeOnCreation = false;
         this.SetExpandedWithChildren(base.m_RootItem, true);
     }
     this.m_EditorTestsRunnerWindow.m_FilterSettings.availableCategories = builder.categories;
     Array.Sort<string>(this.m_EditorTestsRunnerWindow.m_FilterSettings.availableCategories);
     this.m_NewResults = builder.newResultList;
     this.m_EditorTestsRunnerWindow.m_ResultList = new List<EditorTestResult>(this.m_NewResults);
     this.m_EditorTestsRunnerWindow.m_FilterSettings.UpdateCounters(Enumerable.Cast<ITestResult>(this.m_EditorTestsRunnerWindow.m_ResultList));
     this.m_EditorTestsRunnerWindow.Repaint();
     base.m_NeedRefreshRows = true;
 }