Esempio n. 1
0
        private SolutionEvaluationTestResultType TranslateVerificationResultType(OutputVerificationResultType type)
        {
            switch (type)
            {
            case OutputVerificationResultType.CheckerCrashed:
                return(SolutionEvaluationTestResultType.CheckerCrashed);

            case OutputVerificationResultType.CorrectAnswer:
                return(SolutionEvaluationTestResultType.CorrectAnswer);

            case OutputVerificationResultType.CouldNotBind:
                return(SolutionEvaluationTestResultType.CheckerCouldNotBind);

            case OutputVerificationResultType.PartiallyCorrectAnswer:
                return(SolutionEvaluationTestResultType.PartiallyCorrectAnswer);

            case OutputVerificationResultType.WrongAnswer:
                return(SolutionEvaluationTestResultType.WrongAnswer);

            default:
                throw new NotImplementedException();
            }
        }
 public OutputVerificationResult(OutputVerificationResultType type, double scoreMultiplier)
 {
     Type            = type;
     ScoreMultiplier = scoreMultiplier;
 }