Where is the setting governing names of test classes?

Answered

I have an MSTest class named TestStandardController.  Resharper says "Name 'TestStandardController' does not match rule 'Types and namespaces'.  Suggested name is 'StandardController'."  I want to change Resharper to not flag names of test classes that start 'Test'.  I might even want to have R# suggest that I _do_ add 'Test' to the beginning of a test name. I am having trouble finding where the setting for this is.  Please, where is it?

0
2 comments

Hello,

 

Thank you for contacting us.

Please open ReSharper | Options | Code Editing | C# | Naming Style | Advanced Naming Settings and select to Add new rule.

In Edit Extended Naming Rule dialog select Test type and specify Test as Name Prefix.

Hope it helps.

Thank you.

0

That was exactly it.  Thank _you_.

0

Please sign in to leave a comment.