I don’t really understand what you mean by including in unit-test code, could you clarify? I should have included test examples, but this more declarative approach is not any different to unit test then the if-version.
Thanks for your reply!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.