Beispiel #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)
        }
Beispiel #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[])
        }
Beispiel #3
0
 public void DumpExceptionTest01(AphidRuntimeException exception, AphidInterpreter interpreter)
 {
     AphidCli.DumpException(exception, interpreter);
     // TODO: add assertions to method AphidCliTest.DumpExceptionTest01(AphidRuntimeException, AphidInterpreter)
 }
Beispiel #4
0
 public static string Format(AphidRuntimeException exception) =>
 $"{exception.Message}\r\n";
Beispiel #5
0
 public static void DumpException(AphidRuntimeException exception, AphidInterpreter interpreter)
 {
     WriteErrorMessage(StyleEscape(ErrorFormatter.Format(exception)));
     DumpStackTrace(interpreter, exception);
     DumpScope(exception, interpreter);
 }