I am using Delphi 7.
I am new to DUnit, my doubt is what kind of test cases I can write using DUnit and how (that is very important for me).
Is it possible to write test cases for a particular button click event? Because in that event there may be a big set of code used in which more units are called with their respective database related procedures or functions. In that case, what is the best approach to write the test cases and how? (If possible, an example or referal would be a great help for me).
Because, in sample DUnit project we can't write entire sets of application code, because there may be some other form required to be created in some cases.
So, my doubt is for such situations how to write test cases, and generally also what type of test cases we can write using DUnit and importantly how?
OnClick
event handlers. If you re-factored your application to separate GUI from application logic, then you can test the application logic directly. – Adore