Changing resharper settings to suit mspec coding
When I create a new test like the following:
It should_get_something = () => foo();
When I hit the semi开发者_StackOverflow-colon resharper sticks private on the front of the delegate:
Private It should_get_something = () => foo();
I then have to remove it.
Can I tell resharper not to do this? I tried adding a rule to the naming style dialog selecting Machine.Specifications.It and unchecking Private but this had no effect.
In general I recommend to set up ReSharper like Aaron has suggested here.
Not strictly what you're asking about, but you should a look at this too.
Yes, you can stop Resharper forcing you to use explicit private modifier. Just untick "use explicit private modifier" here: Resharper - Options - Languages - C# - Other - Modifier
精彩评论