Mock.SetupStatic Exception

2 posts, 1 answers
  1. Joe
    Joe avatar
    12 posts
    Member since:
    Apr 2007

    Posted 24 Jun 2010 Link to this post

    Hi,

    I'm not sure if I'm setting this one up properly:

    Mock

     

     

    .SetupStatic(typeof(System.Web.Security.Membership));

     

     

     

     

     

    I get the following exception message:

    "The type 'System.Web.Security.MembershipCreateStatus&' may not be used as a type argument."

    I'm trying to verify that Membership.CreateUser is being called inside a method.

    Thanks,

    Joe

  2. Answer
    Ricky
    Admin
    Ricky avatar
    467 posts

    Posted 24 Jun 2010 Link to this post

    Hi Joseph,
    Thanks for reporting the issue. Acutally, i tried it in my dev machine and found a similar issue. As, the release is still a bit away. If you need this urgently , you can provide me with your email so that i can
    send a build to you right away along with the fix.

    Regards,
    Mehfuz


    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top