Fakes generate stubs for both classes and interfaces by default. You may have encountered one of the current limitations that makes Fakes skip your interface. To troubleshoot
- open the .Fakes file and set the Verbosity attribute of the Fakes element to "Verbose"
- open TOOLS β Parameters β Projects and solutions β Assembling and starting and changing the output of MSBuild output to βDetailsβ
- create a project containing the .Fakes file
- open the output window and find the GenerateFakes task; analyze its output for information that explains why a particular interface was not muted.
In the upcoming quarterly update 1 of Visual Studio 2012, this information is reported as a warning in the error list window, regardless of the logging settings, which greatly facilitates troubleshooting.
source share