Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Minudel committed Oct 9, 2013
2 parents 2d9fbe7 + 88d0b60 commit bb886ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions TDDMicroExercises/README.md
Expand Up @@ -13,9 +13,7 @@ Apply the unit testing style and framework you are most comfortable with. You ca
#### 1. **TirePressureMonitoringSystem exercise**:
Write the unit tests for the Alarm class, refactor the code as much as you need to make the class testable.

The Alarm class is designed to monitor tire pressure and set an alarm if the pressure falls outside of the expected range. The Sensor class provided for the exercise fakes the behaviour of a real tire sensor, providing random but realistic values.

Note that there is a MockAlarm and a StubAlarm class provided in the "tests" folder. The purpose of these is purely to demonstrate how a mock and a stub look, you won't need them to complete the exercise.
The Alarm class is designed to monitor tire pressure and set an alarm if the pressure falls outside of the expected range. The Sensor class provided for the exercise simulates the behaviour of a real tire sensor, providing random but realistic values.

#### 2. **UnicodeFileToHtmTextConverter exercise**:
Write the unit tests for the UnicodeFileToHtmTextConverter class, refactor the code as much as you need to make the class testable.
Expand All @@ -32,7 +30,7 @@ The TicketDispenser class is designed to be used to manage a queuing system in a
#### 4. **TelemetrySystem exercise**:
Write the unit tests for the TelemetryDiagnosticControls class, refactor the code as much as you need to make the class testable.

The responsibility of the TelemetryDiagnosticControls class is to establish a connection to the telemetry server (through the TelemetryClient), send a diagnostic request and successfully receive the response that contains the diagnostic info. The TelemetryClient class provided for the exercise fakes the behavior of the real TelemetryClient class, and can respond with either the diagnostic information or a random sequence. The real TelemetryClient class would connect and communicate with the telemetry server via tcp/ip.
The responsibility of the TelemetryDiagnosticControls class is to establish a connection to the telemetry server (through the TelemetryClient), send a diagnostic request and successfully receive the response that contains the diagnostic info. The TelemetryClient class provided for the exercise simulates the behavior of the real TelemetryClient class, and can respond with either the diagnostic information or a random sequence. The real TelemetryClient class would connect and communicate with the telemetry server via tcp/ip.

## A possible solution

Expand Down

0 comments on commit bb886ef

Please sign in to comment.