📄 wxtest.cpp
字号:
// wxTest.cpp
#include <wx/wxprec.h>
#ifdef __BORLANDC__
# pragma hdrstop
#endif
#ifndef WX_PRECOMP
# include <wx/wx.h>
#endif
#include <cppunit/ui/wx/WxTestRunner.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
void RunTests(void)
{
/* FIXME: the test runner must be a static instance because the main "dialog"
* is implemented as a non-modal wxFrame, and run() returns before the
* window is closed. This is specific to the wxWindows implementation of
* the test runner.
*/
static CPPUNIT_NS::WxTestRunner runner;
runner.addTest(CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest());
runner.run(false);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -