اختبار وحدة التشغيل يمكن أن يؤدي العملية إلى زعزعة استقرار استثناء وقت التشغيل في New StandardKernel
-
14-11-2019 - |
سؤال
في اختبارات الوحدة الخاصة بنا حيث تقوم أولا بتحميل إعداد DB من فئة Singleton، لدينا: giveacodicetagpre.
يعمل بشكل جيد في تطبيق MVC الخاص بنا، ومع ذلك، ألقى استثناء عندما يطلق عليه اختبارات الوحدة.
المحلول
Note: I work at Typemock
Due to changes in security in .NET 4, there was a bug in Typemock Isolator where code running from assemblies marked with AllowPartiallyTrustedCallers
(APTCA) or SecurityTransparent
attributes would crash with this exception. Ninject, seems like it, is marked with such an attribute.
We had fixed this issue in the latest version, so please download it at http://www.typemock.com.
If your issue persists in the latest version (6.0.9 currently), please contact us via support at typemock.com
لا تنتمي إلى StackOverflow