07 Unit Testing Part 1 Flashcards
Direct Input
Program element’s behavior affected solely by values that have been passed in via its public interface
Direct Output
Return Value - Observable through public interface.
Indirect Input
The input isn’t supplied using the program element’s public interface?
Indirect Output
No return value or return plus other output - not observable through public interface.
Direct Input/Output Advantages
Its consistent.
It has no side effects
A program is described as stateful if it:
Is designed to remember preceding events or user interactions.
The remembered info is called the state of the system.
Temporal Coupling
Arises as soon as one program element needs something to have happened in another program element in order to function correctly.