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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -