nunit.analyzers icon indicating copy to clipboard operation
nunit.analyzers copied to clipboard

Analyzer and fix: make test method static.

Open JohanLarsson opened this issue 6 years ago • 2 comments

Probably default disbled making it opt-in. Nice convenience for refactoring if nothing else.

JohanLarsson avatar Jun 21 '19 12:06 JohanLarsson

Sounds like a nice addition, albeit I usually have instance test methods (too lazy to write the static :)).

mikkelbu avatar Aug 07 '19 20:08 mikkelbu

@JohanLarsson FxCop analyzers already has rule CA1822 with similar behavior.

pantosha avatar Feb 22 '20 19:02 pantosha