joakimkarlsson / igloo

A framework for unit testing in C++
Boost Software License 1.0
153 stars 32 forks source link

Enable direct access to root context #9

Closed joakimkarlsson closed 11 years ago

joakimkarlsson commented 11 years ago

For contexts with nesting more than two levels, we end up with long chains of "Parent().Parent()..." in contexts that access members of the root context.

Adding a "Root()" method that access the root context directly will remove the need for most of these chains.