By design JustMock Lite acts like the other free-of-charge mocking tools, for example MOQ.
You are correct that JustMock Lite has the "Return()" feature. However, it lacks the profiler, which is the main difference comparing it with the paid version. That's why with JustMock Lite you can't mock non-virtual, sealed or static functions.
In your example code, Item looks like a class. To mock its ID property, you can either declare it as virtual
, or use the commercial edition of JustMock. More about this issue can be found here
I hope this helps.
the Telerik team
Share what you think about JustTrace & JustMock with us, so we can become even better! You can use the built-in feedback tool inside JustTrace, our forums
, or our JustTrace