Hard to test protected and private methods with unit tests.
Suggestion was to use friend classes, but Cucumber doesn't expose class names (just GIVEN defs)
so I created a #define to cover it, define UNIT_TEST, change visibility with #ifdef -- see Monster.h
Hard to test
protected
andprivate
methods with unit tests. Suggestion was to usefriend
classes, but Cucumber doesn't expose class names (just GIVEN defs)so I created a #define to cover it, define UNIT_TEST, change visibility with #ifdef -- see Monster.h