Resharper does not handle private accessor in visual studio unit tests


I'm not sure if you were planning to support this, but code analysis has no idea what to do with private accessors created with visual studio unit testing.

The following line of code is in red.

CorridorGenerator_Accessor generator = new CorridorGenerator_Accessor() { ChangeDirectionModifier = 50, DeadEndRemovalModifier = 0, SparsenessModifier = 50 };

where the CorridorGenerator_Accessor is a "class" generated by visual studio to allow the unit testing project to access private methods on the CorridorGenerator class.

Please sign in to leave a comment.