Behavior Setting Types

Top  Previous  Next

Typemock_C++

Once you've faked various methods, you can change their behavior to do many interesting and useful things:

 

·Basics of changing behavior
·Returning values
·Returning Fakes from live instances
·Replacing function implementations with your own
·Calling original implementation on fakes
·Throwing exceptions
·Returns ordered results

Copyright  Typemock Ltd. 2009-2025.  All Rights Reserved.