Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
IDE
Unit Testing
Test Case Wizard
Test Projects
Test Runner
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/IDE/Unit Testing/Test Case Wizard
[ Add a report in this area ]
Report #:
17721
Status:
Closed
(Pulled) If a class has methods with untyped parameters the Test Case Wizard generates a file that gives the compile error E2003: Undecl
Project:
Delphi
Build #:
9.0.1713.15215
Version:
9.0
Submitted By:
John Kaster
Report Type:
Basic functionality failure
Date Reported:
9/10/2004 12:00:00 AM
Severity:
Commonly encountered problem
Last Updated:
3/20/2012 2:24:39 AM
Platform:
All versions
Internal Tracking #:
210055
Resolution:
Fixed
(Resolution Comments)
Resolved in Build:
:
10.0.2098.14501
Duplicate of:
None
Voting and Rating
Overall Rating:
No Ratings Yet
0.00 out of 5
Total Votes:
None
Description
If a class has methods with untyped parameters the Test Case Wizard generates a file that gives the compile error
E2003: Undeclared identifier: 'void'
Steps to Reproduce:
Create a unit like this:
unit TestWizard;
interface
type
TObjectWithUntypedParam = class(TObject)
public
procedure DoSomething(const Buf);
end;
implementation
{ TObjectWithUntypedParam }
procedure TObjectWithUntypedParam.DoSomething(const Buf);
begin
end;
end.
Start a test project with the Delphi personality
File | New ! Other | Unit test | Test case
Select the unit.
Result: the generated unit contains a procedure like this:
procedure TestTObjectWithUntypedParam.TestDoSomething;
var
Buf: void;
begin
aTObjectWithUntypedParam.DoSomething(Buf);
// TODO: Add testcode here
end;
Workarounds
None
Attachment
N
Comments
None
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us