Jump to content

François T

Members
  • Content Count

    1
  • Joined

  • Last visited

Everything posted by François T

  1. François T

    DUnitx and array

    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
×