jeudi 19 juillet 2018

What is the different between the Stub and the Mock in moq

I wonder the differences about the Stub and the Mock in the moq.

I've read a book about TDD. It said these are similar but definitely different.

and from what I know the moq doesn't have the way to make stub.

Is there any way to make stub using the moq?

like this?

var stub = new Stub<IAuth>();

thank you for reading.

Aucun commentaire:

Enregistrer un commentaire