Skip to content
airstandley edited this page Jun 19, 2018 · 6 revisions

The TestCase attribute allows you to pass values to a test function.

It supports a name, a values and an optional separator parameter. By default the separator is ','.

Each value is coerced from a string to the type the test method expects. See Utils.pas for conversion functions. (Add Page on valid string format for standard types?)

Example

[Test]  
[TestCase('Case 1','1,2')]
[TestCase('Case 2','3,4')]
[TestCase('Case 3','5;6', ';')]
procedure RunMeMoreThanOnce(param1 : integer; param2 : integer);