mocking - is it better to name the subclass's mocked class same with subclass but in different .h in c++? -
i have parent class:
baseclass;
and it's sub class subclass
,
when need 1 mocked subclass subclass, how name it?
i check someone's code sample, subclass's mock class , use same name, in different .h file, 1 subclass.h.the other's mocksubclass.h,
so in case, there need name mock subclass use 1 different name such : mocksubclass
?
thanks.
depends on needs. approach mention reasonable, i.e. cmyclass->cmockmyclass. have mock class per subclass, , there times when need mock base class well. using 'interface' classes can when creating mock classes, per so mocking framework using? true mocks or stubs?
Comments
Post a Comment