May 2017
Intermediate to advanced
590 pages
17h 18m
English
Text fixtures enable users to share data configurations between multiple tests. Fixture objects are not shared between tests. A different fixture object is created for each test that is associated with the text function. The following operations are performed by the framework for each test coming from a fixture:
You can set up and clean the fixture objects in two ways: using the constructor and destructor or the pair of SetUp() and TearDown() virtual methods. For most cases, the former way is preferred. The use of virtual methods is suitable in several cases, though:
Read now
Unlock full access