Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はインターフェースをモックしようとしていて、次の期待を得ました:
System.TypeLoadException:System.TypeLoadException:本体の署名とメソッド実装の宣言が一致しません
私の問題は、インターフェイスで定義した関数であることが後でわかりました。
IList<T> GetAll<T>() where T : class, new();
nmock2で動作するようにクラスを定義する方法を教えてください。前もって感謝します
問題は私のnmock2バージョンでした。2つあり、1.xに置き換えたときに機能しました。