mardi 23 février 2016

How to test class reading from std::istream?

How to mock std::istream? I mean exactly operator >>. My tested object reading two numbers from this stream (std::istream& is a member of this class). How can I test it? How to read this values in test?

I use gmock.

Aucun commentaire:

Enregistrer un commentaire