DEV Community

Discussion on: Questions from conducting TDD workshops

Collapse
 
markschweiger15 profile image
Mark Schweiger

I try to follow the SRP, a class should have no more than one responsibility - So usually my test class covers one class with logic - so it should have at least one method.

I usually add fake/mock as a prefix e.g. fakeProductController.