{"id":5803,"date":"2014-04-07T09:19:09","date_gmt":"2014-04-07T09:19:09","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/problem-about-policy-injection-collection-of-common-programming-errors\/"},"modified":"2014-04-07T09:19:09","modified_gmt":"2014-04-07T09:19:09","slug":"problem-about-policy-injection-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/problem-about-policy-injection-collection-of-common-programming-errors\/","title":{"rendered":"problem about policy-injection-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fe279d7d077cc3b8b78ca349cb441174?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAlwyn<br \/>\nc# unity microsoft-fakes unity-interception policy-injection<br \/>\nI am having trouble with making Unity play nice with the new Fakes framework (formerly pex &amp; 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 &#8211; 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.<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &amp; 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 &#8211; Common Language Runtime detected an invalidprogram.The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5803","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5803"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5803\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}