3 ms·
I don't really see how production-code mocks differ from library-based mocks. If you add but a single constructor parameter to your class, you already need to c
by knallfrosch 2y ago
I don't really see how production-code mocks differ from library-based mocks. If you add but a single constructor parameter to your class, you already need to change your production-mock/stub too.
- earnestinger 2y agothe benefits I see: - nullable (test double/mock) updates would be more natural, easier, since it is located right there in prod code. (One level of indirection removed) - with authoritative location of test double, it reduces the risk of test double proliferation/duplication (I doubt I will use it in the proposed form though, saving test double code in prod is not for me probably)