I was going through the Google Test source code, and was able to sense a pattern being used. But I need some help to solidify my understanding.
Any Test Fixture will have to be inherited from this TEST (base) Class. It has its SetUp, TearDown and TestBody() methods and so on. These methods can also be overridden by the Child classes. And we have this UnitTest Singleton Class, which gets created on calling RUN_ALL_TESTS() and runs all the test cases.
Aucun commentaire:
Enregistrer un commentaire