jeudi 2 avril 2015

Asserting no methods were called

How to I assert a stubbed/mocked object that none of its methods was called? For a single method it's fairly simple, just call Stub(x => x.METHOD()).Repeat.Never() but if you have bunch of methods or lots of overloaded methods it's getting inconvenient. Is there a neat workaround for this?


Aucun commentaire:

Enregistrer un commentaire