When calling AddCleanupAction from a constructor or from constructors of object that are called from field initializers, the cleanup action does not get called.
A new scope should be created for these actions, and they should be called just after the TestCleanup's cleanup actions.
When calling AddCleanupAction from a constructor or from constructors of object that are called from field initializers, the cleanup action does not get called. A new scope should be created for these actions, and they should be called just after the TestCleanup's cleanup actions.