Using Visual Studio 2015 Community. I have a unit test project with all these methods named "Step01_AddUser", "Step02_AddHomework", etc. However I'd like to give them descriptive names which will appear in the Test Explorer window. Basically I want to accomplish 2 things:
- Sort the tests (within the playlist) so that they run in a particular order
- Remove the underscores from the method names, so that for example they read "01 - Add User", "02 - Add Homework".
Is there a way to do this?
I'll answer your questions in the same order they were asked in:
I would also highly recommend going over this article. It goes over some conventions of best naming practices for unit tests.