DEV Community

Discussion on: Questions from conducting TDD workshops

Collapse
 
meanin profile image
Paweł Ruciński
  1. As always, it depends. If class with logic is small enough, I prefer one test class per one tested class. Otherwise, I am creating one class with tests for some similar use cases to group them in reasonable bunch.

  2. Yup, my every test double name consist of variable name and suffix mock. In that case, it is easier to setup its behavior.

Thanks for questions.