In Development
Last Updated: 23 Aug 2019 09:28 by ADMIN
Created on: 22 Aug 2019 06:32
Type: Feature Request
Throw the original exception instead of the TargetInvocationException when using the CallMethod of the PrivateAccessor

The CallMethod of the PrivateAccessor is using reflection to invoke the required method. When an exception is thrown inside that method it will be wrapped by the reflection in a TargetInvocationException which is received in the test method.

Instead of the TargetInvocationException, throw the original exception.

1 comment
Posted on: 22 Aug 2019 08:10

Refers to support ticket


Implemented work around in the mean time. Attached.