Skip to content

Commit

Permalink
Wrote expected code for injecting a Sensor object while instantiating…
Browse files Browse the repository at this point in the history
… an Alarm object.
  • Loading branch information
wubin28 committed Apr 15, 2014
1 parent 5a3864c commit 5527b9d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -11,7 +11,7 @@ public class AlarmTest
[Test]
public void WHEN_check_pressure_value_in_alarm_THEN_get_characterization_of_whether_alarm_is_on()
{
Alarm alarm = new Alarm();
Alarm alarm = new Alarm(simulatedSensor);
alarm.Check();
Assert.AreEqual(true, alarm.AlarmOn);
}
Expand Down

0 comments on commit 5527b9d

Please sign in to comment.