Hello to all,
I'm new to DUnitx. We are introducing UnitTesting in our legacy project since 3 month.
I'd like to test a function having a opened array as parameter.
It's not possible directly with TestCase as I read.
I didn't succeed with TestDataProvider.
What is the best way to do that ?
The function I'd like to test
function IsXXX(const aCurrentXXX: word; const aYYY: word;
const aXXXArray: array of boolean): boolean;
begin
result := ((aYYY in AA_GRP) or ((aYYY in BB_GRP) and ((Length(aXXXArray) >= aCurrentXXX) and
aXXXArray[aCurrentXXX])));
end;
any help will be wellcome,
François