DarkRadiant: master 7ffc528b
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
orbweaver | orbweaver | master | 05.02.2021 19:54 | master 3f2c43cf |
Changeset | Refactor overridden SetUp() and TearDown() Since any non-trivial test must rely on RadiantTest's standard SetUp() and TearDown() code to correctly start and stop the core module, test subclasses must use the fragile CallSuper anti-pattern if they want to add any custom code to this phase. RadiantTest now defines empty virtual methods preStartup(), preShutdown() and postShutdown() which subclasses can override to inject custom code at the appropriate time, without having to remember to call methods on the base class to avoid breaking the setup procedure. |
|||
mod - test/ColourSchemes.cpp | Diff File | |||
mod - test/Favourites.cpp | Diff File | |||
mod - test/MapSavingLoading.cpp | Diff File | |||
mod - test/RadiantTest.h | Diff File |