public void BadDesign_NewVoltageAlarmCanRaiseAlarm_repeatsXtimes()
        {
            // arrange
            double          newVoltageAlarmThreshold = -1d; // make it so that no matter what, an alarm will be raised.
            NewVoltageAlarm newVoltageAlarm          = new NewVoltageAlarm(newVoltageAlarmThreshold);

            // act
            newVoltageAlarm.RaiseAlarm(); // repeats alarm 3 times

            // assert
            Assert.AreEqual(newVoltageAlarm.NumberOfAlarmsRaised, 3);
        }
        public void BadDesign_NewVoltageAlarmCanResetAlarm()
        {
            // arrange
            double          newVoltageAlarmThreshold = -1d; // make it so that no matter what, an alarm will be raised.
            NewVoltageAlarm newVoltageAlarm          = new NewVoltageAlarm(newVoltageAlarmThreshold);

            // act
            newVoltageAlarm.RaiseAlarm();
            newVoltageAlarm.ResetNumberOfAlarmsRaised();

            // assert
            Assert.AreEqual(newVoltageAlarm.NumberOfAlarmsRaised, 0);
        }