Answer the question
In order to leave comments, you need to log in
Am I naming the tests correctly?
I use the naming shouldBehavoir_whenStateUnderTest.
But when I need to test a banal update in the service, what would be the right name for the test then?
shouldUpdateEntity_whenUpdate sounds silly.
Or return all Entities then shouldGetAllEntities_whenGetAll?
The question seems stupid and obvious, but for several days now I have been thinking that something is wrong with my naming and I would be happy to help.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question