Resharper complains about evaluation methods in test projects

I work with visual studio 2012 and Reshaper 7.1.1 and have behavior that really bothers me.

I like to call my tests in C #, for example, the following

public void Identifier_Created_As_Expected() 

I feel this is a good way to quickly prepare what the test does, etc.

The problem is that Reshaper complains and gives a warning saying that the method does not comply with the rule, etc. Which is correct, since I would not call my usual methods like that.

Is there a way that my test projects do not receive resharper, do not complain about it, allow? Although this does not allow the use of ordinary class libraries.

+6
source share
1 answer

Go to Restarper-> Options-> Code Editing-> C # β†’ C # Name Style

Then click Advanced Settings . Advanced settings is hightlighed

Then click Add New Rule. Add button is hightlighed

Find the Test Type and Test Method and define it as UpperCase_UnderscoreTolerant and clear the Enable Validation check box. Test method naming rule definition

For more information, please visit:

+6
source

All Articles