Instead of endless Setup(...).Returns(...)
calls, I would rather obtain a mock object using Mock.Of<T>
and set all the necessary properties - this would be much more readable.
However, I don't seem to find any way to specify strict behaviour for the mock object obtained in such a way, and I need a strict behaviour.
Is it at all achievable?
Aucun commentaire:
Enregistrer un commentaire