开发者

Rename Unit Test when renaming class Visual Studio

开发者 https://www.devze.com 2023-01-09 02:00 出处:网络
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

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 LibraryClassTeststhat tests the class ClassWithNewName.

Is th开发者_Go百科ere 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消