I use Rhino Mocks 3.6 in C # and I experience problems when taunting objects instead of interfaces. Can someone explain why the methods are actually called in determining expectations?
public class MockingBird
{
public void TestMethod()
{
throw new Exception("Method call!");
}
}
...
[TestMethod]
public void TestMock()
{
var mockedMockingBird = MockRepository.GenerateStrictMock<MockingBird>();
mockedMockingBird.Expect(x => x.TestMethod());
}
source
share