Private Accessor for method is not found

Posted by Farinha on Stack Overflow See other posts from Stack Overflow or by Farinha
Published on 2010-06-09T18:18:16Z Indexed on 2010/06/09 18:22 UTC
Read the original article Hit count: 160

I'm getting this error when generating a new unit test under Visual Studio 2010 using the context menu (right-click the method name -> "Generate Unit Tests"):

Private Accessor for methodName is not found. Please rebuild the containing project or run the Publicize.exe manually.

The method is public (checked that by applying applying a filter to not show non-public methods in the "Generate Unit Tests" dialog.

Visual Studio creates some kind of .accessor file automatically. Do I need to do anything in it?

What else could be the problem?

© Stack Overflow or respective owner

Related posts about unit-testing

Related posts about visual-studio-2010