I'm wondering whether I am simply trying to achieve the impossible, but.....
I have successfully mocked up some legacy code and able to run my tests. I have then built a simple WPF app to utilise the same mocking approach and publish the results (without using test fixtures)
However, when I try to run the app outside of visual studio, I get the following exception:
Message=Cannot mock 'System.String get_blah()'. The profiler must be enabled to mock, arrange or execute the specified target.
I have checked the event viewer and the profiler is enabled.
Is this issue simply that this will never run outside of Visual Studio/any other test runner?
Ideally, we would like to be able to create a suite of automated regression testing apps for non-devs to use.