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.
Renamed the test to be GIVEN_pressure_psi_value_is_16_WHEN_check_pressure_value_in_alarm_THEN_alarm_is_on().
Added test GIVEN_pressure_psi_value_is_17_WHEN_check_pressure_value_in_alarm_THEN_alarm_is_off() and made it passed.
Added test GIVEN_pressure_psi_value_is_21_WHEN_check_pressure_value_in_alarm_THEN_alarm_is_off() and it was passed.
Added test GIVEN_pressure_psi_value_is_22_WHEN_check_pressure_value_in_alarm_THEN_alarm_is_on() and it was passed.