May 2017
Intermediate to advanced
590 pages
17h 18m
English
To create and use a test fixture, do the following:
class TestFixture : public ::testing::Test { };
protected: TestFixture() { std::cout << "constructing fixture" << std::endl; data.resize(10); std::iota(std::begin(data), std::end(data), 1); } ~TestFixture() { std::cout << "destroying fixture" << std::endl; }
protected: std::vector<int> data;
Read now
Unlock full access