views:

86

answers:

1

Hi, I was trying to mock an interface and I got the next expection:

System.TypeLoadException: System.TypeLoadException: Signature of the body and declaration in a method implementation do not match

I figured out later that my problem was a function that I have defined in my interface:

IList<T> GetAll<T>() where T : class, new();

Please could you tell me how to define the class so it would work with nmock2? Thanks in advance

+1  A: 

Hi, the problem was my nmock2 version, I had 2 and when I replaced it with 1.x it worked.