Reputation: 68127
I've added a Fakes assembly to a Visual Studio 2012 C# unit test project, via the "Add Fakes Assembly" reference context menu option. What's the procedure to completely remove the Fakes assembly, i.e. to undo my adding it to the project?
Upvotes: 11
Views: 6777
Reputation: 6568
As of Visual Studio 2012 RTM, to completely remove a Fakes assembly from a unit test project, you need to:
Upvotes: 10
Reputation: 5801
Just remove the references to the fake project assembly, after that it will underline the using statements that used the removed references with red, so that will help you completely remove any leftover reference. This of course is a manual approach, if you require a different approach use a 3rd party tool like resharper for example.
Upvotes: 3