2

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

skaffman
  • 398,947
  • 96
  • 818
  • 769
Luisa
  • 525
  • 1
  • 6
  • 16

1 Answers1

1

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

Luisa
  • 525
  • 1
  • 6
  • 16