コード例 #1
0
ファイル: TestsViewModel.cs プロジェクト: runegri/MobiTest
 public void LoadData()
 {
     var testListBuilder = new TestListBuilder();
     var allTests = testListBuilder.BuildTestsList();
     foreach (var test in allTests)
     {
         AllTests.Add(new TestViewModel(test));
     }
 }
コード例 #2
0
        public void LoadData()
        {
            var testListBuilder = new TestListBuilder();
            var allTests        = testListBuilder.BuildTestsList();

            foreach (var test in allTests)
            {
                AllTests.Add(new TestViewModel(test));
            }
        }
コード例 #3
0
 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;
 }