New to Telerik JustMock? Download free 30-day trial

Mock Limitations

The mocking framework strongly relies on some system types, while others are integral part of the .NET runtime, so following types cannot be mocked by the JustMock profiler:

  • System.Reflection.MemberInfo
  • System.Reflection.MethodBase
  • System.Reflection.MethodInfo
  • System.Reflection.ConstructorInfo
  • System.Reflection.FieldInfo
  • System.Reflection.PropertyInfo
  • System.Reflection.EventInfo
  • System.WeakReference
  • System.WeakReference
  • System.IntPtr
  • System.Runtime.CompilerServices.CastHelpers
  • System.CannotUnloadAppDomainException
  • all types in System.Globalization namespace
In this article