private void UpdateResult()
{
this._globalResult.Message.Value =
String.Format(
CultureInfo.CurrentCulture,
"{0}{1}Success:{2:#,0} Skipped:{3:#,0}, Failure:{4:#,0} Error:{5:#,0}",
this._currentTestClassName,
Environment.NewLine,
this._succeeded,
this._skipped,
this._failed,
this._errors
);
if ( this._failed > 0 || this._errors > 0 )
{
this._globalResult.Color.Value = UnityEngine.Color.red;
}
else if( this._succeeded > 0 )
{
this._globalResult.Color.Value = UnityEngine.Color.green;
}
}
}