problem about policy-injection-Collection of common programming errors


  • Alwyn
    c# unity microsoft-fakes unity-interception policy-injection
    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 anInvalidProgramException – Common Language Runtime detected an invalidprogram.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.

Web site is in building