I am trying to clear naming conventions and organize unit tests and integrate our projects. We use C #, NUnit, Visual Studio and Resharper.
It seems like if unit test organization is one of the best practices, then the layout and naming of test classes and namespaces should reflect those that are in the code under test. As a result, the file structure will also be replicated.
Would it be nice to have a tool that could automatically enforce and assist refactoring in accordance with these conventions? Is there such a tool?
For example, it would be easy for Resharper to recognize that OrderTest is a test fixture for the Order class. It can then guarantee that the Order class exists and that it is in the same namespace. If the Order class has been refactored and renamed, the OrderTest class must also be renamed.
source share