dUnit Testing in Delphi (how to test private methods)
- by Charles Faiga
I have a class that I am unit testing into with dUnit
It has a number of methods some public Methods & Private Methods
type
TAuth = class(TDataModule)
private
procedure PrivateMethod;
public
procedure PublicMethod;
end;
In order to write a unit test for this class I have to make all the methods public.
Is there a differt way to declare the PrivateMethods so that I can still unit test them but they are not Public ?