3 ms·
Often I've see interfaces overused for unit testing in C# and Java. To improve the situation my current team came up with SimpleMock[1], a pattern that allows f
by JackMorgan 9y ago
Often I've see interfaces overused for unit testing in C# and Java. To improve the situation my current team came up with SimpleMock[1], a pattern that allows for behavior replacement without interfaces or a complex black box mocking library. It works in any language with lambdas and mutable fields: so just about anything.
[1] http://deliberate-software.com/simplemock-unit-test-mocking/ http://deliberate-software.com/simplemock-unit-test-mocking/