Mocking virtual readonly properties with moq

Viewed 21447

I couldn't find a way to do this, though this can be done by hand so why not with moq?

2 Answers

You need to make sure property is virtual to make this work.

Related