protected override void ResultUpdated(EditorTestResult result)
 {
     EditorTestResult result2 = result;
     Texture iconForResult = ((!result2.executed && !result2.isIgnored) && (result2.resultState != TestResultState.NotRunnable)) ? Icons.s_UnknownImg : GuiHelper.GetIconForResult(new TestResultState?(result2.resultState));
     if (base.m_Test.get_RunState() == 4)
     {
         iconForResult = GuiHelper.GetIconForResult(3);
     }
     this.icon = iconForResult as Texture2D;
 }
        protected override void ResultUpdated(EditorTestResult result)
        {
            EditorTestResult result2       = result;
            Texture          iconForResult = ((!result2.executed && !result2.isIgnored) && (result2.resultState != TestResultState.NotRunnable)) ? Icons.s_UnknownImg : GuiHelper.GetIconForResult(new TestResultState?(result2.resultState));

            if (base.m_Test.get_RunState() == 4)
            {
                iconForResult = GuiHelper.GetIconForResult(3);
            }
            this.icon = iconForResult as Texture2D;
        }
Beispiel #3
0
        public void UpdateGroup()
        {
            this.m_RefreshResults = false;
            TestResultState?nullable2 = null;
            TestResultState?nullable  = nullable2;

            foreach (EditorTestResultBase base2 in base.m_Children)
            {
                nullable2 = null;
                TestResultState?resultState = nullable2;
                if (base2 is EditorTestResult)
                {
                    EditorTestResult result = base2 as EditorTestResult;
                    if (result.executed)
                    {
                        resultState = new TestResultState?(result.resultState);
                    }
                }
                else if (base2 is EditorTestResultGroup)
                {
                    resultState = (base2 as EditorTestResultGroup).resultState;
                }
                if (resultState.HasValue)
                {
                    switch (resultState.Value)
                    {
                    case TestResultState.Success:
                        nullable = 4;
                        break;

                    case TestResultState.Failure:
                    case TestResultState.Error:
                        nullable = 5;
                        goto Label_0115;

                    case TestResultState.Inconclusive:
                        nullable = 0;
                        break;

                    case TestResultState.Ignored:
                        nullable = 3;
                        break;
                    }
                }
            }
Label_0115:
            this.m_ResultState = nullable;
        }
 public void SetResult(EditorTestResult result)
 {
     this.m_EditorTestResult = result;
     this.m_EditorTestResult.SetResultChangedCallback(new Action<EditorTestResult>(this.ResultUpdated));
     this.ResultUpdated(this.m_EditorTestResult);
 }
 protected virtual void ResultUpdated(EditorTestResult result)
 {
 }
 public void SetResult(EditorTestResult result)
 {
     this.m_EditorTestResult = result;
     this.m_EditorTestResult.SetResultChangedCallback(new Action <EditorTestResult>(this.ResultUpdated));
     this.ResultUpdated(this.m_EditorTestResult);
 }
 protected virtual void ResultUpdated(EditorTestResult result)
 {
 }
Beispiel #8
0
 private static SequencePoint GetSequencePointOfTest(EditorTestResult test)
 {