07 Unit Testing Part 1 Flashcards

1
Q

Direct Input

A

Program element’s behavior affected solely by values that have been passed in via its public interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Direct Output

A

Return Value - Observable through public interface.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Indirect Input

A

The input isn’t supplied using the program element’s public interface?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Indirect Output

A

No return value or return plus other output - not observable through public interface.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Direct Input/Output Advantages

A

Its consistent.
It has no side effects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A program is described as stateful if it:

A

Is designed to remember preceding events or user interactions.

The remembered info is called the state of the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Temporal Coupling

A

Arises as soon as one program element needs something to have happened in another program element in order to function correctly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly