I suggest you ...

Make the internal recording of actual invocations optional in order to reduce memory usage by Moq

I use Moq simply to produce stubbed interfaces. I have no need to check the invocations of each method for some of my mocked interfaces. In some cases, the number of invocations is in the 100,000's, which causes many OutOfMemoryExceptions to be thrown unexpectedly.

Being able to turn off invocation tracking for specific mocks would fix this issue.

3 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Julius Jackson shared this idea  ·   ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base