Rename Unit Test when renaming a Visual Studio class

In the relevant note, this question has just appeared:

I usually stick to the naming conventions LibraryClassLibraryClassTestsfor my unit tests. However, when renaming LibraryClassusing the default rename / refactor function in Visual Studio, R # or CodeRush (I tested both), the test file was not renamed, that is, I could have a class with a name LibraryClassTeststhat checks the class ClassWithNewName.

Is there a way to configure Visual Studio and / or the extension to do the same so that when the file name changes, the corresponding unit test also changes?

+3
source share

Source: https://habr.com/ru/post/1756175/


All Articles