Hi, I'm a new Typemocker ;-)
I have a problem with mocking of properties. When I mock the properties from a "normal" c-sharp class, it works.
When try to mock a property from a interop generated class, i got following error:
"Cannot use Return in this sequence, there must be a mocked statement first
Perhaps you are trying to mock a method from mscorlib."
// CServiceClass is a COM Object
CServiceClass mc = RecorderManager.CreateMockedObject<CServiceClass>();
using (RecordExpectations r = new RecordExpectations())
{
r.ExpectAndReturn(mc.LoggedIn, 1);
}
plz help
thx