Rushwind13 / JMoria

My from-scratch implementation of a Roguelike game that will be an homage to IMoria
4 stars 4 forks source link

feat: Unit Test Encapsulation #49

Closed Rushwind13 closed 1 month ago

Rushwind13 commented 1 month ago

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