78lro
78lro

Reputation: 1790

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-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.

Upvotes: 6

Views: 567

Answers (3)

Tormod Hystad
Tormod Hystad

Reputation: 2405

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

Upvotes: 2

Tim Scott
Tim Scott

Reputation: 15205

Not strictly what you're asking about, but you should a look at this too.

Upvotes: 2

Alexander Groß
Alexander Groß

Reputation: 10458

In general I recommend to set up ReSharper like Aaron has suggested here.

Upvotes: 3

Related Questions