扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
"$(BDS)\\Bin\\vclmenudesigner90.bpl"="(Untitled)" "$(BDS)\\Bin\\win32debugproide90.bpl"="(Untitled)" "$(BDS)\\Bin\\htmide90.bpl"="HTML Designer Package" "$(BDS)\\Bin\\iteidew3290.bpl"="Borland Integrated Translation Environment for Win32" "$(BDS)\\Bin\\SrcManIDE90.bpl"="(Untitled)" "$(BDS)\\Bin\\todoide90.bpl"="Borland ToDo" "$(BDS)\\Bin\\htmlhelp290.bpl"="Borland HtmlHelp Viewer" "$(BDS)\\Bin\\idefilefilters90.bpl"="IDE File filters" "$(BDS)\\Bin\\startpageide90.bpl"="Borland Start Page IDE Package" "$(BDS)\\Bin\\refactoride90.bpl"="Borland Core Refactoring Package" "$(BDS)\\Bin\\dbkdebugide90.bpl"="(Untitled)" "$(BDS)\\Bin\\exceptiondiag90.bpl"="(Untitled)" "$(BDS)\\bin\\deployide90.bpl"="Deployment Manager" "$(BDS)\\Bin\\plugview90.bpl"="Pluggable Tree View Package" "$(BDS)\\Bin\\coreproide90.bpl"="Core IDE Pro Package" "$(BDS)\\Bin\\IDETools90.bpl"="Build Tools" "$(BDS)\\Bin\\unittestide90.bpl"="(Untitled)" "$(BDS)\\Bin\\historyide90.bpl"="(Untitled)" "$(BDS)\\Bin\\htmltidy90.bpl"="HTML Tidy Formatter" "$(BDS)\\Bin\\HTMLFmt90.bpl"="HTML Internal Formatter" "$(BDS)\\Bin\\mlcc90.bpl"="Markup Language Code Completion Package" "$(BDS)\\Bin\\delphivclide90.bpl"="Delphi VCL Designer IDE Package" "$(BDS)\\Bin\\delphicoreproide90.bpl"="(Untitled)" "$(BDS)\\Bin\\win32debugide90.bpl"="(Untitled)" "$(BDS)\\Bin\\htmlide90.bpl"="(Untitled)" "$(BDS)\\Bin\\delphide90.bpl"="Delphi Win32 IDE Personality" "$(BDS)\\Bin\\mtspro90.bpl"="(Untitled)" "$(BDS)\\Bin\\mtsent90.bpl"="(Untitled)" "$(BDS)\\Bin\\iteidenet90.bpl"="Borland Integrated Translation Environment for .NET" "$(BDS)\\Bin\\NetImportWiz90.bpl"="(Untitled)" "$(BDS)\\Bin\\DataExplorer90.bpl"="(Untitled)" |
unit TestBasic; interface uses TestFramework; type TBasic = class public function Add(a, b: integer): integer; end; TTestBasic = class(TTestCase) private FBasic: TBasic; public procedure SetUp; override; procedure TearDown; override; published procedure TestAdd; end; implementation function TBasic.Add(a, b: integer): integer; begin Result := a + b; end; procedure TTestBasic.SetUp; begin FBasic := TBasic.Create; end; procedure TTestBasic.TearDown; begin FBasic.Free; end; procedure TTestBasic.TestAdd; begin CheckEquals(2, FBasic.Add(1, 1)); end; initialization RegisterTest('', TTestBasic.Suite); end. |
exports RegisteredTests name 'Test'; end. |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者