internal static string FormatOutput(ChallengeOutput challengeOutput, string outputMessage)
        {
            if (challengeOutput.Successful)
            {
                return(string.Concat(FormatExecutionTime(challengeOutput.ExecutionTime), outputMessage));
            }

            return(string.Concat(
                       FormatExecutionTime(challengeOutput.ExecutionTime),
                       challengeOutput.Exception.Message,
                       Environment.NewLine,
                       "Line number: ",
                       new StackTrace(challengeOutput.Exception, true).GetFrame(0).GetFileLineNumber()));
        }
    public ChallengeOutputSerialized(ChallengeOutput co)
    {
        this.Asserts            = co.Asserts;
        this.AssertsPercentage  = co.AssertsPercentage;
        this.ChallengeExcercise = co.ChallengeExercise;
        this.Duration           = co.Duration;
        this.Etapa          = co.Etapa;
        this.EtapaChallenge = co.EtapaChallenge;
        this.Minigame       = co.Minigame;
        this.Summarized     = co.Summarized;
        this.Timestamp      = co.Timestamp;
        this.WeekSummarized = co.WeekSummarized;

        if (co.School != null)
        {
            SchoolSerialized ss = new SchoolSerializedDAO().LoadByObjectId(co.School.ObjectId);
            if (ss != null)
            {
                this.SchoolSerialized = ss;
            }
            else
            {
//				Debug.Log ("Serialized: There is no relationship saved");
            }
        }

        if (co.Student != null)
        {
            StudentSerialized ss = new StudentSerializedDAO().LoadByObjectId(co.Student.ObjectId);
            if (ss != null)
            {
                this.StudentSerialized = ss;
            }
            else
            {
//				Debug.Log ("Serialized: There is no relationship saved");
            }
        }
    }