예제 #1
0
        public AphidRuntimeException CreateRuntimeException01(
            [PexAssumeUnderTest] AphidInterpreter target,
            AphidExpression expression,
            object obj
            )
        {
            AphidRuntimeException result = target.CreateRuntimeException(expression, obj);

            return(result);
            // TODO: add assertions to method AphidInterpreterTest.CreateRuntimeException01(AphidInterpreter, AphidExpression, Object)
        }
예제 #2
0
        public AphidRuntimeException CreateRuntimeException(
            [PexAssumeUnderTest] AphidInterpreter target,
            string message,
            object[] args
            )
        {
            AphidRuntimeException result = target.CreateRuntimeException(message, args);

            return(result);
            // TODO: add assertions to method AphidInterpreterTest.CreateRuntimeException(AphidInterpreter, String, Object[])
        }
예제 #3
0
 public void DumpExceptionTest01(AphidRuntimeException exception, AphidInterpreter interpreter)
 {
     AphidCli.DumpException(exception, interpreter);
     // TODO: add assertions to method AphidCliTest.DumpExceptionTest01(AphidRuntimeException, AphidInterpreter)
 }
예제 #4
0
 public static string Format(AphidRuntimeException exception) =>
 $"{exception.Message}\r\n";
예제 #5
0
파일: AphidCli.cs 프로젝트: 5l1v3r1/Aphid
 public static void DumpException(AphidRuntimeException exception, AphidInterpreter interpreter)
 {
     WriteErrorMessage(StyleEscape(ErrorFormatter.Format(exception)));
     DumpStackTrace(interpreter, exception);
     DumpScope(exception, interpreter);
 }