Hi,
This is a bug, Mock.Vertify verifies only the instance calls and not the base class calls.
As a workaround, you can use the VerifyMocks attribute:
[TestMethod, VerifyMocks]
public void Test()
{
Mock<DerivedClass> mock = MockManager.Mock<DerivedClass>();
// mock only BaseClass.SomeMethod when called from a DerivedClass Type.
mock.CallBase.ExpectCall("Initialize");
DerivedClass d = new DerivedClass();
d.Initialize();
}
Regards,
Elisha,
Typemock Support