projectsource.txt
来自「类似于Java JUnit的单元测试」· 文本 代码 · 共 31 行
TXT
31 行
// Uncomment the following directive to create a console application
// or leave commented to create a GUI application...
// {$APPTYPE CONSOLE}
program #PROJECTNAME;
uses
TestFramework {$IFDEF LINUX},
QForms,
QGUITestRunner {$ELSE},
Forms,
GUITestRunner {$ENDIF},
TextTestRunner;
{$R *.RES}
begin
Application.Initialize;
{$IFDEF LINUX}
QGUITestRunner.RunRegisteredTests;
{$ELSE}
if System.IsConsole then
TextTestRunner.RunRegisteredTests
else
GUITestRunner.RunRegisteredTests;
{$ENDIF}
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?