Calling Hidden Members |
Top Previous Next |
With Isolator++ Professional you can now call private members.
To call a private instance member
ISOLATOR_INVOKE_FUNCTION(retVar,&instance,PrivateMemeber, args...);
In a similar fashion, a static method can be called by passing
ISOLATOR_INVOKE_FUNCTION(retVar,_,MyClass::PrivateMemeber, args...);
Static c functions can be called as follows
ISOLATOR_INVOKE_FUNCTION(retVar,_, staticFunctionInModule, args...);
Note: To catch an exception thrown in an INVOKE PRIVATE method within your test (on a 64-bit system), use the HandleExceptionInTest flag. |
Copyright Typemock Ltd. 2009-2025. All Rights Reserved.