Cleaning up

Usually you will want the faked behavior you set to be per test method.
In order to do that you should use the ISOLATOR_CLEANUP macro

Cleans Isolator++ fakes at the end of the test.

Use ISOLATOR_CLEANUP macro at the end of the test to clean up any faked behavior you set in the test. Note that if you will not do that the faked behavior will carry on to the next test. Example:
 ASSERT_EQ("hello", fakeConcrete->GetString());


See also: