Upgraded from JustMock Q3 2010 to Q2 2011 - Mock.Create and Mock.SetupStatic throwing exceptions

2 posts, 0 answers
  1. Chad
    Chad avatar
    2 posts
    Member since:
    Sep 2011

    Posted 28 Sep 2011 Link to this post

    Hi as the subject explains I've updated to JustMock Q2 2011 and now have exceptions thrown.

    System.Reflection.Emit.ILGenerator.Emit(OpCode opcode, MethodInfo meth)
    š..(ILGenerator il, Type target, MethodBase methodInfo)
    š..Š(MethodBase methodBase, Boolean isFrameworkMethod, Type target)
    š..Š(Type target, MethodBase methodBase, Boolean isFrameworkMethod, Boolean force)
    š..Š(MethodBase methodBase, Boolean isMsCorlib, Boolean force)
    .€.(Behavior behavior, Boolean static)
    .€.‡()
    Telerik.JustMock.Mock.Create(Type target, Behavior behavior, Object[] args)
    Telerik.JustMock.Mock.Create(Type target, Object[] args)
    Telerik.JustMock.Mock.Create[T]()
    TPN.MessageProcessor.Tests.DeliveryMessageProcessorTemplateTest.Setup() in C:\Source\TPN\DEV\TPN.TestSuite\MessageProcessor\DeliveryMessageProcessorTemplateTest.cs: line 45

    I haven't installed the MSI, just added the dll from (JustMock_2011.2.713_Dev.msi) which I expect wouldn't cause any problems, I'm using VS 2010. I couldn't find anything in the release notes related to Q2 2011, any help would be greatly appreciated.
  2. Ricky
    Admin
    Ricky avatar
    467 posts

    Posted 28 Sep 2011 Link to this post

    Hi Chad,

    Thanks again for reporting the exception.

    However you can try the latest internal build from the site released a week ago.

    The release note can be found here:
    http://www.telerik.com/versionnotes.aspx?nb=1&id=1544
     
    Additionally, If you are still facing the exception with the above mentioned build then you can send me the exception message along with the class that is causing it which I will use to investigate the problem and possibly can you the fix through a private build (In that regard you have to open a support ticket).
    Kind Regards,
    Mehfuz
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft R3 2016 release webinar banner
Back to Top