I have been doing a number of tests for developing using TDD; i.e write my test first.
I have always been used to writing the test like so, using this naming convention.
MethodName_DoesWhat_WhenTheseConditions
These work great for unit testing as I am aware of what the method names are, but doing TDD I am not aware of the method names. For example I have a user story that states
"As a user, I can return the total number of records in the database"
Now just taking a look at this, I know straight away that I will have a number of methods, layers.
But I don't know the names of these methods right now in TDD, so does it make sense to try and prefix the test names? Does anyone have any advice here?
Also once I have written my tests and my methods/classes and everything is working does it make sense to create additional "unit tests" to test the class for things I didn't via TDD?