Sometime, when the Unit Test of a class has been done and method use _Accessor while the code has changed. What ever you compile many time it still doesn't "synchronize" the _Accessor file. The only thing that work is closing VS2008 and reopend it. Any trick to "regenerate" the Testing Accessor?
Open the class where the private/protected method is located. Right click and choose "Create Private Accessor" and choose the proper test project.
Regenerating all accessors en masse
Search for all _accessor. files in your project folders and delete them (be sure not to delete any files which you have created yourself). Most of these will be found in the Release/debug folders and test folders created by VS.
Rebuild your solution.
Note: Doing a clean or rebuild does not delete the accessor dll/pdb files so we are doing it manually here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With