Sep-09-2019, 12:49 PM
(Sep-09-2019, 06:17 AM)Skaperen Wrote: doing that for processes is harder. a mock itself would be so big it needs to go through its own testing.
If you'd bothered to read the link that ndc provided, you would find ways to do this without lots of testing. What Gerard Meszaros calls a 'stub', which just provides a canned answer, would solve your problem. You don't comment anything out, you provide a return value for any variable assignments, and it's so simple it doesn't need testing.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures