On a related note to this question, which just came up:
I commonly follow the naming convention LibraryClass
<-> LibraryClassTests
for my unit tests. However, when renaming LibraryClass
using the default rename/refactor functionality in either Visual Studio, R# or CodeRush (I have tested both) the test file is not renamed, meaning I might have class called LibraryClassTests
that tests the class ClassWithNewName
.
Is there a way to configure Visual Studio and/or an extension to the same so that whenever I change the name of a file, the corresponding unit test is also changed?