mercredi 28 décembre 2016

How to assign descriptive names to unit tests

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:

  1. Sort the tests (within the playlist) so that they run in a particular order
  2. 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?

Aucun commentaire:

Enregistrer un commentaire