In Development
Last Updated: 23 Aug 2019 09:28 by ADMIN
Mihail
Created on: 22 Aug 2019 06:32
Type: Feature Request
1
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
Theo
Posted on: 22 Aug 2019 08:10

Refers to support ticket 

https://www.telerik.com/account/support-tickets/view-ticket/1426099

 

Implemented work around in the mean time. Attached.