Possible AV in Spring.Testing
Issue #183
resolved
TTestFoo = class(TTestCase)
published
[TestCase('')]
procedure Fact(a, b: string);
end;
Spring.Testing Line 449-459 assumes Length(values)=Length(parameters). Also, what about default parameters?
Runtime fatal exception is not expected in this case.
Comments (5)
-
repo owner -
reporter OK. I missed that. It'll be helpful to show this limitation within some documentation and error message.
-
repo owner - changed status to resolved
fixed issue
#183→ <<cset fb88747d1545>>
-
repo owner fixed issue
#183→ <<cset fb88747d1545>>
-
repo owner - changed version to 1.2
- Log in to comment
Agreed, the code should check the proper argument length from the attribute first.
As for default values RTTI does not have any information about them. It is simply impossible to dynamically invoke such a method without filling all parameters explicitly.