public interface ICell { int Value{get;} void IncrementValue(); }
我想在RhinoMocks中为这个接口创建一个存根.我有一个只读属性,我想每次调用IncrementValue()方法时增加它的值.这可能吗?我不想为这个存根创建一个新类.
c# rhino-mocks stub
c# ×1
rhino-mocks ×1
stub ×1