Rhino Mocks ですべての呼び出しに対して例外をスローするスタブを作成することは可能ですか?
public interface IMyIF
{
// Some methods
}
[TestClass]
public class MyTestClass
{
[TestMethod()]
public void MyTest()
{
MockRepository mocks = new MockRepository();
IMyIF stb = mocks.Stub<IMyIF>();
// Somehow set stb to throw some exception on every method call
// without knowing all the methods and overloads in IMyIF interface
// use stb to test something
}
}