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.
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
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.