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.
November 19th, 2009 - 09:01
You saved me hours of work on this problem. Thanks a million!
March 2nd, 2010 - 08:16
Me too, thanks.
May 26th, 2011 - 00:18
Thanks a lot!