public void SetUnscheduledToNotRun() { if(!IsScheduledToRun) RunState = UniTestRunState.NotRun; Children.Each(c => c.SetUnscheduledToNotRun()); }
void DrawRunState(UniTestRunState state) { Texture texture = null; switch(state) { case UniTestRunState.NotRun: texture = notRunTexture; break; case UniTestRunState.Failed: texture = failedTexture; break; case UniTestRunState.Pending: texture = pendingTexture; break; case UniTestRunState.Passed: texture = passedTexture; break; default: throw new System.Exception(string.Format("RunState '{0}' not supported!", state)); } GUILayout.Label(texture); }