I am having trouble with making Unity play nice with the new Fakes framework (formerly pex & moles)
When I tried to create fakes of the unity interception library, it caused my unit test to run fine when debugging, but breaks with an
InvalidProgramException - Common Language Runtime detected an invalid program.
The question is why? Why the different behavior in debug vs. release? The unit test pass, when debugging, but breaks with the above exception when I choose to run it, instead.