Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6249995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:20:28+00:00 2026-05-24T13:20:28+00:00

I had class Voo { private static AnotherClass Doo(int id) { //do some stuff

  • 0

I had

class Voo
{
  private static AnotherClass Doo(int id)
  {
     //do some stuff with id then return object of AnotherClass
     return x[0];
  }
}

and used this private with moles

MVoo.DooInt32 = delegate ...

NOW I changed the method to:

class Voo
{
  private static AnotherClass Doo(string a, object b)
  {
     //do some stuff with a and b then return object of AnotherClass
     return x[0];
  }
}

BUT moles does not give me the new signature. Sill MVoo.DooInt32
but I expect MVoo.DooStringObject

I removed the moles reference, cleaned, rebuilded. No positive result so far.

Any Ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T13:20:29+00:00Added an answer on May 24, 2026 at 1:20 pm

    You need to be sure to delete the mole assembly file (.dll), rebuild the test project without the mole type, and then add it back in. This process is thorough, and has always worked for me, in this situation:

    1. Remove the mole assembly reference from the test project
    2. Delete the .moles file, named after the assembly in question
    3. In Solution Explorer, show all files in the test project
    4. Expand the hidden “MolesAssemblies” folder
    5. Delete the desired _.Moles.dll file and corresponding XML files
    6. Remove (not delete) test files that reference the mole assembly
    7. Rebuild the test project
    8. Select the “Add Moles Assembly” context menu option, on the desired test project reference
    9. Add test files that were temporarily removed from the project
    10. Rebuild the test project

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have in C++: class A { private: virtual int myfunction(void) {return 1;}
I had this: class ProposalsController < ApplicationController def forkIt return FFFFFUUUU end end But
If I had: class A(object): varA = 1 inst = A() Then how would
If I had a class foo then class foo{ vector <int> vec; int someint;
I had a class with some common error handling code, and I wanted to
Imagine in the Global.asax.cs file I had an instance class as a private field.
Like this: public class remoteStatusCounts : RemoteStatus { public int statusCount; public remoteStatusCounts(RemoteStatus r)
I'm trying to create a generic class which will have some static functions based
Imagine this: class A(object): class B(object): def __init__(self): super(B, self).__init__() This creates an error:
Edit: This didn't work because I had: class Animal { ... } class Horse

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.