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.
アプリケーションの単体テストを作成しようとしていますが、proto-class にインターフェイスを実装させたいと考えています。できれば、それらは c# クラスと一緒に生成されますが、これを行う方法が見つかりません。方法はありますか?
protogen ツールは、標準の部分クラス定義を記述します。これにより、2 番目のクラス ファイルにインターフェイスを簡単に追加できます。
namespace Foo { partial class Bar : IWhatever {...} }