public static ShowAggregateResults ( TestResultsViewState, state, ArrayList aggregateResults ) : TestResultsViewState, | ||
state | TestResultsViewState, | |
aggregateResults | ArrayList | |
return | TestResultsViewState, |
public void OnGUI() { if (UnityTest.TestRunner == this) { GUI.depth = -10; GUILayout.BeginArea(GUITools.FullScreen, "Unit Tests", "window"); viewState = TestRunnerGUI.ShowAggregateResults(viewState, aggregateResults); GUILayout.EndArea(); } }
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(); }