I know this is not good class design for UT but...
In case there are protected variables that need to be tested, would it be better to just use FRIEND_TEST to get/set these variables on test? Or should I create getters and setters (for each variable!)?
Ex.
class Dog
{
public:
//some methods
protected:
int age;
std::string color;
std::string breed
}
Declaring a FRIEND_TEST will not require much overhead unlike if I will create getters and setters for each == 6 new methods! But what is the more correct solution?