In Typemock 5.x some developer on our team did this:
CustomJob job = new CustomJob();
Customer customer = new Customer();
Isolate.WhenCalled(() => job.Customer).WillReturn(customer);
Isolate.WhenCalled(() => job.Customer.Orders.Count).WillReturn(2);
Since a later version (last time I checked it was 6.0.1) that did not work anymore. Now we do this
CustomJob job = new CustomJob();
Customer customer = new Customer();
var fakeOrder = Isolate.Fake.Instance<Order>();
Isolate.WhenCalled(() => fakeOrder.OrderLines.Count).WillReturn(2);
Isolate.WhenCalled(() => job.Customer).WillReturn(customer);
Isolate.WhenCalled(() => job.Customer.Order.OrderLines.Count).WillReturn(2);
And now the test succeeds again.
Just wondering if this is a bug... I mean feature in 5.x or 6.x ;-)