ShowAggregateResults() public static method

public static ShowAggregateResults ( TestResultsViewState, state, ArrayList aggregateResults ) : TestResultsViewState,
state TestResultsViewState,
aggregateResults ArrayList
return TestResultsViewState,
示例#1
0
 public void OnGUI()
 {
     if (UnityTest.TestRunner == this)
     {
         GUI.depth = -10;
         GUILayout.BeginArea(GUITools.FullScreen, "Unit Tests", "window");
         viewState = TestRunnerGUI.ShowAggregateResults(viewState, aggregateResults);
         GUILayout.EndArea();
     }
 }
示例#2
0
 public void OnGUI()
 {
     if (UnityTestController.Instance != null)
     {
         aggregateResults = UnityTestController.Instance.aggregateResults;
     }
     GUILayout.BeginVertical(GUITools.ConstrainedBox);
     if (UnityTestController.Instance != null)
     {
         viewState = TestRunnerGUI.ShowAggregateResults(viewState, aggregateResults);
     }
     else if (UnityTest.Instance != null)
     {
         viewState.innerScrollPosition = TestRunnerGUI.ShowSuiteResults(viewState.innerScrollPosition, UnityTest.Instance.results);
     }
     else
     {
         GUILayout.Label("No test data...");
         GUILayout.FlexibleSpace();
     }
     GUILayout.EndVertical();
 }