Initialized the Java code for my exercises.
Added the interface IAlarm to make code compiled successfully.
Added an assertion for test given_psi_pressure_value_is_less_than_17_when_check_then_alarm_is_on().
Changed the test to be when_check_alarm_then_get_characterization().
Made test when_check_alarm_then_get_characterization() passed.
Added an assertion to test given_psi_pressure_value_is_less_than_17_when_check_alarm_then_alarm_is_on().
Mocked Sensor in test given_psi_pressure_value_is_less_than_17_when_check_alarm_then_alarm_is_on().
Made test given_psi_pressure_value_is_less_than_17_when_check_alarm_then_alarm_is_on() passed.
Added test given_psi_pressure_value_is_greater_than_21_when_check_alarm_then_alarm_is_on() and it passed directly.
Added test given_psi_pressure_value_is_between_17_and_21_when_check_alarm_then_alarm_is_off() and it passed directly.
Added an assertion for test when_pop_next_pressure_psi_value_then_get_characterization().
Made test when_pop_next_pressure_psi_value_then_get_characterization() passed.
Renamed the test of Sensor to be when_pop_next_pressure_psi_value_then_it_is_between_18_and_19().
Initialized C# code for exerciese.
Added an assertion for test WHEN_check_pressure_value_in_alarm_THEN_get_characterization_of_whether_alarm_is_on().
Got characterization from the test. But the result was random. Will mock the random part to make the assertion constant.
Wrote expected code for injecting a Sensor object while instantiating an Alarm object.
Mocked the Sensor in the test.
Set up the mocked Sensor in the test. But got error message 'System.NotSupportedException : Invalid setup on a non-virtual (overridable in VB) member: s => s.PopNextPressurePsiValue()'. Will extract interface for class Sensor.
Extracted interface ISensor.