I have a situation where I need to mock some code in production. This is for making one part of code, work in half functionality.
I have to choose to write an empty classes (to implement the interface) , or use a mocking system like moq.
So the question is, do the mocking systems hit the performance, or break some readability of the production code?
update
example:
interface IRocketSystem
{
void LaunchTheRocket();
}
class SimulationRocketSystem:IRocketSystem
{
...
}
class RocketSystem:IRocketSystem
{
...
}
i found that i have a SimulationRocketSystem classes in production, that small and don't have a lot in the body. the mock system is have one line of code ( new Mock < IRocketSystem >().Object ) to replace classes like this.
the pros for mocking:
less empty classes in project.