开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜