machine / machine.specifications

Machine.Specifications is a Context/Specification framework for .NET that removes language noise and simplifies tests.
MIT License
886 stars 178 forks source link

ReSharper is highlighting all specifications as unused fields #150

Closed laazyj closed 11 years ago

laazyj commented 11 years ago

Using Visual Studio 2012 with ReSharper 8.0. MSpec plugin: 0.5.14-beta1

ReSharper is highlighting all specifications in my test contexts as 'unused fields'. I didn't observe the same behaviour with R# 7.1 + MSpec 0.5.12 plugin

agross commented 11 years ago

http://stackoverflow.com/a/7137686/149264

"Annotations + SubjectAttribute (even without custom naming rules) prevent ReSharper from marking MSpec's fields as unused. Alternatively, disable warning 169 in the project settings."

laazyj commented 11 years ago

Ah yeah. It seems that enabling the MSpec code annotations is one setting that isn't persisted when you update the plugin version - I already had the correct code style rules in place.