Found some errors in Isolator++ documentation (both online and the CHM file):
Cookbook -> How Do I Fake... -> Faking concrete classes
MyClass* fakeMyClass* = FAKE<MyClass>();
should be
MyClass* fakeMyClass = FAKE<MyClass>();
Usage Examples -> Faking GetComputerName
If (!lpnSize)
{
Return FALSE;
}
should be
if (!lpnSize)
{
return FALSE;
}
And
WHEN_CALLED(GetComputerName(_, _)).DoStaticOrGlobalInstead(MyGetComputerName);
has a missing parameter in DoStaticOrGlobalInstead
WHEN_CALLED(GetComputerName(_, _)).DoStaticOrGlobalInstead(MyGetComputerName, 0);