Wassup Jose Weblog nonsense at its best!

18Aug/093

Visual Studio Unit Testing: Creating a Private Accessor

Tried desperately to have Visual Studio to create a private accessor for me today, but every time the Test was created I received this message:

Creation of the private accessor for 'Microsoft.VisualStudio.TestTools.TypesAndSymbols.Assembly' failed

I ran into a bunch of people talking about bugs in VS, but then I tried on another project and it worked just fine. I figured out that I had discluded the accessor file and Test References folder from my Test project. Therefore VS wasn't able to overwrite the file on the file system since it wasn't included in the project. Once I included the folder and Project.Accessor everything worked perfect.

Comments (3) Trackbacks (0)
  1. You saved me hours of work on this problem. Thanks a million!

  2. Me too, thanks.

  3. Thanks a lot!


Leave a comment

(required)

 

No trackbacks yet.