/// <summary>
		/// Returns a class job result with an incorrect method definition.
		/// </summary>
		private ClassJobResult GetClassJobResultWrongDefinition(MethodDefinition def)
		{
			return new ClassJobResult()
			{
				ClassCompilationResult = new CompilationResult()
				{
					Success = true,
				},
				ClassDefinition = new ClassDefinition
				{
					Name = "QuestionGenerator",
					Methods = Collections.CreateList(def)
				}
			};
		}
		/// <summary>
		/// Returns a failed method job result.
		/// </summary>
		public MethodJobResult GetFailedMethodJobResult(
			MethodDefinition definition)
		{
			return new MethodJobResult()
			{
				Status = CodeJobStatus.Completed,
				ClassCompilationResult = new CompilationResult() { Success = true },
				MethodDefinition = definition,
				TestsCompilationResult = new CompilationResult()
				{
					Success = false,
					Errors = Collections.CreateList
					(
						new CompileError()
						{
							FullError = "Test compilation failure"
						}
					)
				}
			};
		}